Fix exception when using 'true' as filter
This commit is contained in:
1 parent
63876025d2
commit
7269c726fc
8 files changed
+16
-16
No files matched your search
+2
-2
@@ -47,8 +47,8 @@ export function init(args): Promise<{}> {
|
|||||||
if (!window.authorizer.hasAccess("devices", 2))
|
if (!window.authorizer.hasAccess("devices", 2))
|
||||||
return void reject(new Error("You are not authorized to view this page"));
|
return void reject(new Error("You are not authorized to view this page"));
|
||||||
|
|
||||||
const filter = args.filter;
|
const filter = args.hasOwnProperty("filter") ? "" + args["filter"] : "";
|
||||||
const sort = args.sort;
|
const sort = args.hasOwnProperty("sort") ? "" + args["sort"] : "";
|
||||||
const indexParameters = Object.values(config.ui.index);
|
const indexParameters = Object.values(config.ui.index);
|
||||||
resolve({ filter, indexParameters, sort });
|
resolve({ filter, indexParameters, sort });
|
||||||
});
|
});
|
||||||
|
|||||||
+2
-2
@@ -53,8 +53,8 @@ export function init(args): Promise<{}> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const sort = args.sort;
|
const sort = args.hasOwnProperty("sort") ? "" + args["sort"] : "";
|
||||||
const filter = args.filter;
|
const filter = args.hasOwnProperty("filter") ? "" + args["filter"] : "";
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
loadYaml()
|
loadYaml()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
+2
-2
@@ -125,8 +125,8 @@ export function init(args): Promise<{}> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const sort = args.sort;
|
const sort = args.hasOwnProperty("sort") ? "" + args["sort"] : "";
|
||||||
const filter = args.filter;
|
const filter = args.hasOwnProperty("filter") ? "" + args["filter"] : "";
|
||||||
return Promise.resolve({ filter, sort });
|
return Promise.resolve({ filter, sort });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -151,8 +151,8 @@ export function init(args): Promise<{}> {
|
|||||||
new Error("You are not authorized to view this page")
|
new Error("You are not authorized to view this page")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const sort = args.sort;
|
const sort = args.hasOwnProperty("sort") ? "" + args["sort"] : "";
|
||||||
const filter = args.filter;
|
const filter = args.hasOwnProperty("filter") ? "" + args["filter"] : "";
|
||||||
return Promise.resolve({ filter, sort });
|
return Promise.resolve({ filter, sort });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -128,8 +128,8 @@ export function init(args): Promise<{}> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const sort = args.sort;
|
const sort = args.hasOwnProperty("sort") ? "" + args["sort"] : "";
|
||||||
const filter = args.filter;
|
const filter = args.hasOwnProperty("filter") ? "" + args["filter"] : "";
|
||||||
return Promise.resolve({ filter, sort });
|
return Promise.resolve({ filter, sort });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -108,8 +108,8 @@ export function init(args): Promise<{}> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const sort = args.sort;
|
const sort = args.hasOwnProperty("sort") ? "" + args["sort"] : "";
|
||||||
const filter = args.filter;
|
const filter = args.hasOwnProperty("filter") ? "" + args["filter"] : "";
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
loadCodeMirror()
|
loadCodeMirror()
|
||||||
|
|||||||
+2
-2
@@ -134,8 +134,8 @@ export function init(args): Promise<{}> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const sort = args.sort;
|
const sort = args.hasOwnProperty("sort") ? "" + args["sort"] : "";
|
||||||
const filter = args.filter;
|
const filter = args.hasOwnProperty("filter") ? "" + args["filter"] : "";
|
||||||
return Promise.resolve({ filter, sort });
|
return Promise.resolve({ filter, sort });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -108,8 +108,8 @@ export function init(args): Promise<{}> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const sort = args.sort;
|
const sort = args.hasOwnProperty("sort") ? "" + args["sort"] : "";
|
||||||
const filter = args.filter;
|
const filter = args.hasOwnProperty("filter") ? "" + args["filter"] : "";
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
loadCodeMirror()
|
loadCodeMirror()
|
||||||
|
|||||||
Reference in new issue
Block a user