diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-03-17 22:36:16 -0400 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-03-17 22:36:16 -0400 |
commit | a8c02cba0bf96e435e062f2251890243ad8f49e0 (patch) | |
tree | d311cf983e609a094efc6c5606423b2ce2727331 /src/client/util/CurrentUserUtils.ts | |
parent | c4ca83acf90676abf2f822b4b0ff455fe50c0ddb (diff) |
made and/or a property of the document so it's saved with the filter
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r-- | src/client/util/CurrentUserUtils.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index 88bb1207f..157a88de7 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -810,8 +810,9 @@ export class CurrentUserUtils { _lockedPosition: true, boxShadow: "0 0", childDontRegisterViews: true, targetDropAction: "same", system: true }); const clearAll = ScriptField.MakeScript(`getProto(self).data = new List([])`); - (doc.currentFilter as any as Doc).contextMenuScripts = new List<ScriptField>([clearAll!]); - (doc.currentFilter as any as Doc).contextMenuLabels = new List<string>(["Clear All"]); + (doc.currentFilter as Doc).contextMenuScripts = new List<ScriptField>([clearAll!]); + (doc.currentFilter as Doc).contextMenuLabels = new List<string>(["Clear All"]); + (doc.currentFilter as Doc).filterBoolean = "AND"; } } |