We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ee3cf6a + 62f9d25 commit 7c50e8dCopy full SHA for 7c50e8d
packages/front/src/fragments/Plans/index.ts
@@ -179,6 +179,10 @@ export class Plans extends OBC.Component implements OBC.Disposable {
179
const sections = this.components.get(Sections);
180
await sections.goTo(id, animate);
181
await this.applyCachedPlanCamera();
182
+ const foundPlan = this.list.find((plan) => plan.id === id);
183
+ if (foundPlan) {
184
+ this.currentPlan = foundPlan;
185
+ }
186
this.enabled = true;
187
}
188
@@ -195,6 +199,7 @@ export class Plans extends OBC.Component implements OBC.Disposable {
195
199
this.cachePlanCamera();
196
200
197
201
await sections.exit(animate);
202
+ this.currentPlan = null;
198
203
this.enabled = false;
204
this.onExited.trigger();
205
0 commit comments