Skip to content

Commit 7e5f48f

Browse files
committed
Update
1 parent 5bd2d92 commit 7e5f48f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/scenes/src/variables/sets/SceneVariableSet.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ describe('SceneVariableList', () => {
408408
// Update state with a new variable
409409
set.setState({ variables: [A, B] });
410410

411-
// Should not start loadaing A again, it has options already
411+
// Should not start loading A again, it has options already
412412
expect(A.state.loading).toBe(false);
413413
// Should start B
414414
expect(B.state.loading).toBe(true);

packages/scenes/src/variables/sets/SceneVariableSet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class SceneVariableSet extends SceneObjectBase<SceneVariableSetState> imp
3737
);
3838

3939
// Subscribe to state changes
40-
this._subs.add(this.subscribeToState({ next: (state) => this.handleStateChanged(state) }));
40+
this._subs.add(this.subscribeToState((state) => this.handleStateChanged(state)));
4141

4242
this.checkForVariablesThatChangedWhileInactive();
4343

0 commit comments

Comments
 (0)