File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/front/src/fragments/Plans Expand file tree Collapse file tree 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 {
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 }
You can’t perform that action at this time.
0 commit comments