remove unnecessary checking in SELECTED
This commit is contained in:
parent
634c0b48b0
commit
af996cfc1d
1 changed files with 2 additions and 8 deletions
|
@ -33,15 +33,9 @@ export default class filters {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (URL) {
|
if (URL) {
|
||||||
let SELECTED = await (async () => {
|
let SELECTED = await global.search(`filters`, URL, `URL`, 0.5, {"cloud": -1});
|
||||||
// Get the filters.
|
|
||||||
let filter = await global.search(`filters`, URL, `URL`, 0.5, {"cloud": -1});
|
|
||||||
|
|
||||||
// If there are filters, then filter the URL.
|
|
||||||
return filter;
|
|
||||||
})();
|
|
||||||
|
|
||||||
if ((SELECTED && SELECTED != null && (typeof SELECTED).includes(`obj`)) ? (Object.keys(SELECTED)).length > 0 : false) {
|
if ((SELECTED && SELECTED != null && (typeof SELECTED).includes(`obj`)) ? (Object.keys(SELECTED)).length : false) {
|
||||||
this.one = (Object.entries(SELECTED))[0][1];
|
this.one = (Object.entries(SELECTED))[0][1];
|
||||||
return (this.one);
|
return (this.one);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue