Skip to content

Commit 0c8ecd7

Browse files
authored
fix: use op name instead of scope name as key for op schema subscopes (#831)
1 parent 8ad1ad6 commit 0c8ecd7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/builder/analyzer.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -783,10 +783,12 @@ impl AnalyzerContext {
783783
.await?;
784784
let sub_op_scope_schema =
785785
sub_op_scope.states.lock().unwrap().build_op_scope_schema();
786-
op_scope.states.lock().unwrap().sub_scopes.insert(
787-
foreach_op.op_scope.name.clone(),
788-
Arc::new(sub_op_scope_schema),
789-
);
786+
op_scope
787+
.states
788+
.lock()
789+
.unwrap()
790+
.sub_scopes
791+
.insert(reactive_op.name.clone(), Arc::new(sub_op_scope_schema));
790792
analyzed_op_scope_fut
791793
};
792794
let op_name = reactive_op.name.clone();

0 commit comments

Comments
 (0)