Skip to content

Commit

Permalink
fix(structure): update sync lock toast id to make it unique across do…
Browse files Browse the repository at this point in the history
…cuments
  • Loading branch information
pedrobonamin committed Aug 8, 2024
1 parent 7bb46a8 commit dac1623
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ export const FormView = forwardRef<HTMLDivElement, FormViewProps>(function FormV

const conditionalToastParams = useMemo(
() => ({
id: `sync-lock-${documentId}`,
id: `sync-lock`,
status: 'warning' as const,
enabled: isLocked,
title: t('document-view.form-view.sync-lock-toast.title'),
description: t('document-view.form-view.sync-lock-toast.description'),
closable: true,
}),
[documentId, isLocked, t],
[isLocked, t],
)

useConditionalToast(conditionalToastParams)
Expand Down

0 comments on commit dac1623

Please sign in to comment.