Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mbogo-mit committed Jan 8, 2024
1 parent 9f001e0 commit ea83e56
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/pages/documents/[slug]/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ const DocumentPage = ({
// Connection info: (unused)
// connectionId,
// rm,

// broadcast keys: $enter_rm, $set, $notification, $disconnect,
broadcast,

Expand Down Expand Up @@ -1629,7 +1629,9 @@ const DocumentPage = ({
{groupNameMapping.array.length > 0 ? groupNameMapping.array.map(({ _id, name }) => <Button
style={{ margin: '0px 10px 10px 0px'}}
variant={defaultGroupFilteringId === _id ? 'dark' : 'light'}
onClick={() => setDefaultGroupFilteringId(_id)}
onClick={() => {
setDefaultGroupFilteringId(_id);
}}
>
{name}
</Button>) : <Button
Expand All @@ -1643,7 +1645,10 @@ const DocumentPage = ({
<Modal.Footer>
<Button
variant="primary"
onClick={() => setShowGroupFilteringModal(null)}
onClick={() => {
setShowGroupFilteringModal(null);
setFoundDefaultGroupFilteringId(true);
}}
disabled={defaultGroupFilteringId === undefined}
>
Continue
Expand Down

0 comments on commit ea83e56

Please sign in to comment.