From 1fe2f6f4d271530cf009b0686c4e4ee85d0be393 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Fri, 15 May 2026 13:13:00 -0400 Subject: [PATCH] fix: correct idaa_trig usage in recovery_meetings Zoom URL editor $idaa_trig is a key_val object (dict of boolean flags), not a string signal. Adds update_zoom_full_url key to the store template and converts all 7 string comparisons/assignments to property access on the object. Co-Authored-By: Claude Sonnet 4.6 --- src/lib/stores/ae_idaa_stores.ts | 3 ++- .../ae_idaa_comp__event_obj_id_edit.svelte | 14 +++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/lib/stores/ae_idaa_stores.ts b/src/lib/stores/ae_idaa_stores.ts index b6d3f21c..978c2d30 100644 --- a/src/lib/stores/ae_idaa_stores.ts +++ b/src/lib/stores/ae_idaa_stores.ts @@ -182,7 +182,8 @@ const idaa_trig_template: key_val = { archive_id: false, archive_content_li: false, event_id: false, - post_id: false + post_id: false, + update_zoom_full_url: false }; export const idaa_trig: Writable = writable(idaa_trig_template); diff --git a/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_id_edit.svelte b/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_id_edit.svelte index 7debf3c3..a22c0850 100644 --- a/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_id_edit.svelte +++ b/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_id_edit.svelte @@ -689,13 +689,13 @@ if (browser && $idaa_slct.event_obj?.attend_json) { // attend_json.zoom.passcode_enc below throws a TypeError and crashes the component. $effect(() => { if ( - $idaa_trig == 'update_zoom_full_url' && + $idaa_trig.update_zoom_full_url && $idaa_slct.event_obj.attend_url_code && $idaa_slct.event_obj.attend_url_passcode && $idaa_sess.recovery_meetings.attend_platform === 'Zoom' && $idaa_slct.event_obj.attend_json?.zoom // guard: zoom may be undefined after IDB re-fire ) { - $idaa_trig = null; + $idaa_trig.update_zoom_full_url = false; $idaa_slct.event_obj.attend_url_code = String($idaa_slct.event_obj.attend_url_code) @@ -1203,7 +1203,7 @@ $effect(() => { } $idaa_sess.recovery_meetings.attend_platform = 'Zoom'; - $idaa_trig = 'update_zoom_full_url'; + $idaa_trig.update_zoom_full_url = true; }}> Zoom @@ -1319,7 +1319,7 @@ $effect(() => { '' ).length > 8 ) { - $idaa_trig = 'update_zoom_full_url'; + $idaa_trig.update_zoom_full_url = true; } }} class="input preset-tonal-surface hover:preset-filled-surface-100-900 w-52" /> @@ -1342,7 +1342,7 @@ $effect(() => { $idaa_slct.event_obj.attend_url_passcode ?.length > 3 ) { - $idaa_trig = 'update_zoom_full_url'; + $idaa_trig.update_zoom_full_url = true; } else { $idaa_slct.event_obj.attend_url_passcode = ''; @@ -1388,7 +1388,7 @@ $effect(() => { $idaa_slct.event_obj.attend_json.zoom .passcode_enc?.length >= 8 ) { - $idaa_trig = 'update_zoom_full_url'; + $idaa_trig.update_zoom_full_url = true; } }} class="input preset-tonal-surface hover:preset-filled-surface-100-900 w-72" /> @@ -1421,7 +1421,7 @@ $effect(() => { .toLowerCase() .trim() : 'zoom.us'; - $idaa_trig = 'update_zoom_full_url'; + $idaa_trig.update_zoom_full_url = true; }} class="input preset-tonal-surface hover:preset-filled-surface-100-900 w-56" />