aboutsummaryrefslogtreecommitdiff
path: root/src/client/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/util')
-rw-r--r--src/client/util/CurrentUserUtils.ts2
-rw-r--r--src/client/util/SearchUtil.ts2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index cf1c98b88..9fbc82bef 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -40,10 +40,8 @@ import { SnappingManager } from "./SnappingManager";
import { UndoManager } from "./UndoManager";
import { DocumentView } from "../views/nodes/DocumentView";
import { IconProp } from "@fortawesome/fontawesome-svg-core";
-import { infoState } from "../views/collections/collectionFreeForm/CollectionFreeFormInfoState";
export interface Button {
- targetState?: infoState;
// DocumentOptions fields a button can set
title?: string;
toolTip?: string;
diff --git a/src/client/util/SearchUtil.ts b/src/client/util/SearchUtil.ts
index 2f23d07dc..8077445f6 100644
--- a/src/client/util/SearchUtil.ts
+++ b/src/client/util/SearchUtil.ts
@@ -59,7 +59,7 @@ export namespace SearchUtil {
* An array of all field names used by the Doc or its prototypes.
*/
export function documentKeys(doc: Doc) {
- return Object.keys(Doc.GetAllPrototypes(doc).filter(proto => proto).reduce(
+ return Array.from(Doc.GetAllPrototypes(doc).filter(proto => proto).reduce(
(keys, proto) => {
Object.keys(proto).forEach(keys.add.bind(keys));
return keys;