Skip to content

Commit

Permalink
also recalculate fields if selected widget changes
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Nov 20, 2023
1 parent fbd76ee commit e9a32a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
Message as MessageDialog,
SelectFile as SelectFileDialog, Icon,
} from '@iobroker/adapter-react-v5';
import { store, updateProject } from './Store';
import { recalculateFields, store, updateProject } from './Store';

import Attributes from './Attributes';
import Palette from './Palette';
Expand Down Expand Up @@ -1153,6 +1153,8 @@ class App extends Runtime {
alignValues: [],
});
}

store.dispatch(recalculateFields(true));
};

toggleCode = () => {
Expand Down

0 comments on commit e9a32a7

Please sign in to comment.