Skip to content

Commit

Permalink
PATCH: fix: emit 'plan-sleected' when changing storey in photosphere …
Browse files Browse the repository at this point in the history
…building
  • Loading branch information
NicolasRichel committed Nov 21, 2024
1 parent de351fb commit 275a8df
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ watch(
watch(
selectedStorey,
storey => (selectedPlanId.value = storey?.plans?.[0]?.plan.id ?? null),
storey => {
const plan = storey?.plans?.[0];
selectedPlanId.value = plan?.plan.id ?? null;
if (plan) emit("plan-selected", plan);
},
{ immediate: true }
);
Expand Down

0 comments on commit 275a8df

Please sign in to comment.