Commit 62f9d25 1 parent a778e64 commit 62f9d25 Copy full SHA for 62f9d25
File tree 1 file changed +5
-0
lines changed
packages/front/src/fragments/Plans
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,10 @@ export class Plans extends OBC.Component implements OBC.Disposable {
179
179
const sections = this . components . get ( Sections ) ;
180
180
await sections . goTo ( id , animate ) ;
181
181
await this . applyCachedPlanCamera ( ) ;
182
+ const foundPlan = this . list . find ( ( plan ) => plan . id === id ) ;
183
+ if ( foundPlan ) {
184
+ this . currentPlan = foundPlan ;
185
+ }
182
186
this . enabled = true ;
183
187
}
184
188
@@ -195,6 +199,7 @@ export class Plans extends OBC.Component implements OBC.Disposable {
195
199
this . cachePlanCamera ( ) ;
196
200
const sections = this . components . get ( Sections ) ;
197
201
await sections . exit ( animate ) ;
202
+ this . currentPlan = null ;
198
203
this . enabled = false ;
199
204
this . onExited . trigger ( ) ;
200
205
}
You can’t perform that action at this time.
0 commit comments