File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/client/reactive/active-expression-rewriting Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -377,10 +377,12 @@ const DependenciesToAExprs = {
377377
378378 associate ( dep , aexpr ) {
379379 const location = aexpr . meta ( ) . get ( "location" ) ;
380- if ( location && location . file && ! this . _AEsPerFile . has ( location . file ) ) {
381- this . _AEsPerFile . set ( location , new Set ( ) ) ;
380+ if ( location && location . file ) {
381+ if ( ! this . _AEsPerFile . has ( location . file ) ) {
382+ this . _AEsPerFile . set ( location . file , new Set ( ) ) ;
383+ }
384+ this . _AEsPerFile . get ( location . file ) . add ( aexpr ) ;
382385 }
383- this . _AEsPerFile . get ( location ) . add ( aexpr ) ;
384386 this . _depsToAExprs . associate ( dep , aexpr ) ;
385387 dep . updateTracking ( ) ;
386388 DebuggingCache . debouncedUpdateDebuggingViews ( ) ;
@@ -389,7 +391,7 @@ const DependenciesToAExprs = {
389391 disconnectAllForAExpr ( aexpr ) {
390392 const location = aexpr . meta ( ) . get ( "location" ) ;
391393 if ( location && location . file && this . _AEsPerFile . has ( location . file ) ) {
392- this . _AEsPerFile . get ( location ) . delete ( aexpr ) ;
394+ this . _AEsPerFile . get ( location . file ) . delete ( aexpr ) ;
393395 }
394396 const deps = this . getDepsForAExpr ( aexpr ) ;
395397 this . _depsToAExprs . removeAllLeftFor ( aexpr ) ;
You can’t perform that action at this time.
0 commit comments