aboutsummaryrefslogtreecommitdiff
path: root/src/fields/List.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-22 19:44:02 -0400
committerbobzel <zzzman@gmail.com>2020-08-22 19:44:02 -0400
commitff5994377a80ec76c0138c5966f43a5bbce6e8b3 (patch)
treec13e11c83d585ce16458bac6f09e84900692cabf /src/fields/List.ts
parenta2e794def459f176a69bd4f3bab7e0a180e72d26 (diff)
more search cleanup. searches over dashboards, not collections now. fixed drag-off filters to still work with collections.
Diffstat (limited to 'src/fields/List.ts')
-rw-r--r--src/fields/List.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/List.ts b/src/fields/List.ts
index 1c2b89b01..3601f282b 100644
--- a/src/fields/List.ts
+++ b/src/fields/List.ts
@@ -334,5 +334,5 @@ Scripting.addGlobal("List", List);
Scripting.addGlobal(function compareLists(l1: any, l2: any) {
const L1 = Cast(l1, listSpec("string"), []);
const L2 = Cast(l2, listSpec("string"), []);
- return L1 && L2 && L1.length === L2.length && L2.reduce((p, v) => p && L1.includes(v), true);
+ return !L1 && !L2 ? true : L1 && L2 && L1.length === L2.length && L2.reduce((p, v) => p && L1.includes(v), true);
}, "compare two lists"); \ No newline at end of file