aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaHeaders.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-28 09:29:09 -0400
committerbobzel <zzzman@gmail.com>2020-09-28 09:29:09 -0400
commit1e7796692551ba71cd755a122697327f4d85ccde (patch)
tree5571fc297f315188dc2859452073875d876e0c6b /src/client/views/collections/CollectionSchemaHeaders.tsx
parent0ba42a96a69f79b388c3279d683636f8cf6b0eab (diff)
fixed follow link to scroll stacking/masonry views properly.
Diffstat (limited to 'src/client/views/collections/CollectionSchemaHeaders.tsx')
-rw-r--r--src/client/views/collections/CollectionSchemaHeaders.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSchemaHeaders.tsx b/src/client/views/collections/CollectionSchemaHeaders.tsx
index 66f78201e..dbf7488ec 100644
--- a/src/client/views/collections/CollectionSchemaHeaders.tsx
+++ b/src/client/views/collections/CollectionSchemaHeaders.tsx
@@ -319,7 +319,7 @@ export class KeysDropdown extends React.Component<KeysDropdownProps> {
@computed get showKeys() {
const whitelistKeys = ["context", "author", "*lastModified", "text", "data", "tags", "creationDate"];
- let keyOptions = this._searchTerm === "" ? this.props.possibleKeys : this.props.possibleKeys.filter(key => key.toUpperCase().indexOf(this._searchTerm.toUpperCase()) > -1);
+ const keyOptions = this._searchTerm === "" ? this.props.possibleKeys : this.props.possibleKeys.filter(key => key.toUpperCase().indexOf(this._searchTerm.toUpperCase()) > -1);
const showKeys = new Set<string>();
[...keyOptions, ...whitelistKeys].forEach(key => (!Doc.UserDoc().noviceMode ||
whitelistKeys.includes(key)