fix(journals): remove duplicate Journal_obj_id_edit modal and fix bind:show
- [journal_id]/+page.svelte was rendering a second Journal_obj_id_edit
alongside the one already in ae_comp__journal_obj_id_view.svelte,
causing the modal to open twice simultaneously.
- ae_comp__journal_obj_id_view: changed show={} to bind:show={} so that
closing the modal properly writes back to journals_sess, preventing the
store from fighting the close and re-opening it.
This commit is contained in:
@@ -270,7 +270,7 @@
|
||||
<Journal_obj_id_edit
|
||||
{log_lvl}
|
||||
{lq__journal_obj}
|
||||
show={$journals_sess.show__modal_edit__journal_obj}
|
||||
bind:show={$journals_sess.show__modal_edit__journal_obj}
|
||||
on_new_entry={handle_new_entry}
|
||||
{on_show_export}
|
||||
{on_show_import}
|
||||
|
||||
Reference in New Issue
Block a user