diff options
author | IEatChili <nanunguyen99@gmail.com> | 2024-06-27 13:55:55 -0400 |
---|---|---|
committer | IEatChili <nanunguyen99@gmail.com> | 2024-06-27 13:55:55 -0400 |
commit | 7e13e1df797f1d3358f553802527bf42c5574e81 (patch) | |
tree | 3380a64a114295da09ff828b8574dba3f673ab52 /src/client/views/KeywordBox.tsx | |
parent | 3190f1eb07a47a5e1ccdd20e346b47094118292d (diff) |
feat: added grid of collections when sorting
Diffstat (limited to 'src/client/views/KeywordBox.tsx')
-rw-r--r-- | src/client/views/KeywordBox.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/KeywordBox.tsx b/src/client/views/KeywordBox.tsx index 8c69f446d..d94f011f4 100644 --- a/src/client/views/KeywordBox.tsx +++ b/src/client/views/KeywordBox.tsx @@ -39,6 +39,7 @@ export class KeywordItem extends ObservableReactComponent<KeywordItemProps> { removeLabel = () => { if (this._props.doc[DocData].data_labels) { this._props.doc[DocData].data_labels = (this._props.doc[DocData].data_labels as List<string>).filter(label => label !== this._props.label) as List<string>; + this._props.doc![DocData][`${this._props.label}`] = false; } }; @@ -103,6 +104,7 @@ export class KeywordBox extends ObservableReactComponent<KeywordBoxProps> { } (this._props.doc![DocData].data_labels! as List<string>).push(this._currentInput.trim()); + this._props.doc![DocData][`${this._currentInput}`] = true; this._currentInput = ''; // Clear the input box } }; |