diff options
author | bobzel <zzzman@gmail.com> | 2023-12-29 17:01:40 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-12-29 17:01:40 -0500 |
commit | 9b9f54a43793ca6ffb26c56f962d11ba8325abd2 (patch) | |
tree | 026063b95da59556eb0a416b5f6fafd2ebccd737 /src/client/util/GroupManager.tsx | |
parent | a567eb1b6469db202d41d4d54f2c96137e49ea9c (diff) |
cleaned up imports, mobx observable initialization and some compile errors.
Diffstat (limited to 'src/client/util/GroupManager.tsx')
-rw-r--r-- | src/client/util/GroupManager.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/GroupManager.tsx b/src/client/util/GroupManager.tsx index 90f65b648..f4f879208 100644 --- a/src/client/util/GroupManager.tsx +++ b/src/client/util/GroupManager.tsx @@ -33,7 +33,7 @@ export class GroupManager extends ObservableReactComponent<{}> { @observable isOpen: boolean = false; // whether the GroupManager is to be displayed or not. @observable private users: string[] = []; // list of users populated from the database. @observable private selectedUsers: UserOptions[] | null = null; // list of users selected in the "Select users" dropdown. - @observable currentGroup: Opt<Doc>; // the currently selected group. + @observable currentGroup: Opt<Doc> = undefined; // the currently selected group. @observable private createGroupModalOpen: boolean = false; private inputRef: React.RefObject<HTMLInputElement> = React.createRef(); // the ref for the input box. private createGroupButtonRef: React.RefObject<HTMLButtonElement> = React.createRef(); // the ref for the group creation button |