Skip to content

Commit

Permalink
Add a random uuid at the end of confirm modal id
Browse files Browse the repository at this point in the history
This prevents conflicting ids in the case there are multiple confirm modals
that can be triggered on the same page.
  • Loading branch information
nas-tabchiche committed Sep 27, 2024
1 parent 58b6239 commit b70f212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/lib/components/Modals/ConfirmModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
import SuperForm from '$lib/components/Forms/Form.svelte';
const { form, enhance } = superForm(_form, {
const { form } = superForm(_form, {
dataType: 'json',
id: 'confirm-modal-form'
id: `confirm-modal-form-${crypto.randomUUID()}`
});
// Base Classes
Expand Down

0 comments on commit b70f212

Please sign in to comment.