Fix bugs in resources download
Fix a bug caused when downloading with smart query filter on. Also fix a bug in downloading presets.
This commit is contained in:
1 parent
3b3369a236
commit
d70263e798
7 files changed
+26
-22
No files matched your search
+2
-2
@@ -28,7 +28,7 @@ const getDownloadUrl = memoize((filter, indexParameters) => {
|
||||
const columns = {};
|
||||
for (const p of indexParameters) columns[p.label] = stringify(p.parameter);
|
||||
return `/api/devices.csv?${m.buildQueryString({
|
||||
filter: filter,
|
||||
filter: stringify(filter),
|
||||
columns: JSON.stringify(columns)
|
||||
})}`;
|
||||
});
|
||||
@@ -382,7 +382,7 @@ export const component: ClosureComponent = (): Component => {
|
||||
vnode.state["selected"] = selected;
|
||||
|
||||
const downloadUrl = getDownloadUrl(
|
||||
vnode.attrs["filter"],
|
||||
filter,
|
||||
vnode.attrs["indexParameters"]
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user