Skip to content

Commit 7c50e8d

Browse files
committed
2 parents ee3cf6a + 62f9d25 commit 7c50e8d

File tree

1 file changed

+5
-0
lines changed
  • packages/front/src/fragments/Plans

1 file changed

+5
-0
lines changed

packages/front/src/fragments/Plans/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ export class Plans extends OBC.Component implements OBC.Disposable {
179179
const sections = this.components.get(Sections);
180180
await sections.goTo(id, animate);
181181
await this.applyCachedPlanCamera();
182+
const foundPlan = this.list.find((plan) => plan.id === id);
183+
if (foundPlan) {
184+
this.currentPlan = foundPlan;
185+
}
182186
this.enabled = true;
183187
}
184188

@@ -195,6 +199,7 @@ export class Plans extends OBC.Component implements OBC.Disposable {
195199
this.cachePlanCamera();
196200
const sections = this.components.get(Sections);
197201
await sections.exit(animate);
202+
this.currentPlan = null;
198203
this.enabled = false;
199204
this.onExited.trigger();
200205
}

0 commit comments

Comments
 (0)