Skip to content

Commit

Permalink
fix: refresh list view on close of dialog (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chisomchima authored Dec 5, 2024
1 parent 8537bce commit c10d79f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/sectionList/SectionListWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export const SectionListWrapper = ({
BaseListModel | undefined
>(undefined)

const onSharingDialogClose = () => {
setSharingDialogId(undefined)
refetch()
}

const SectionListMessage = () => {
if (error) {
console.log(error.details || error)
Expand Down Expand Up @@ -159,7 +164,7 @@ export const SectionListWrapper = ({
but it works if you pass the correct type*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type={schema.singular as any}
onClose={() => setSharingDialogId(undefined)}
onClose={() => onSharingDialogClose()}
/>
)}
{translationDialogModel && (
Expand Down

0 comments on commit c10d79f

Please sign in to comment.