mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Move all state setting to inside of then block of computeComponentState in fetchApp (#4946)
This commit is contained in:
parent
8b467026d9
commit
c0883935c4
1 changed files with 8 additions and 9 deletions
|
|
@ -415,17 +415,16 @@ class EditorComponent extends React.Component {
|
|||
},
|
||||
},
|
||||
async () => {
|
||||
// TODO: Check if this runQueries is required
|
||||
computeComponentState(this, this.state.appDefinition.pages[homePageId]?.components ?? {}).then(() => {
|
||||
computeComponentState(this, this.state.appDefinition.pages[homePageId]?.components ?? {}).then(async () => {
|
||||
this.runQueries(data.data_queries);
|
||||
this.setWindowTitle(data.name);
|
||||
this.setState({
|
||||
showComments: !!queryString.parse(this.props.location.search).threadId,
|
||||
});
|
||||
for (const event of dataDefinition.pages[homePageId]?.events ?? []) {
|
||||
await this.handleEvent(event.eventId, event);
|
||||
}
|
||||
});
|
||||
this.setWindowTitle(data.name);
|
||||
this.setState({
|
||||
showComments: !!queryString.parse(this.props.location.search).threadId,
|
||||
});
|
||||
for (const event of dataDefinition.pages[homePageId]?.events ?? []) {
|
||||
await this.handleEvent(event.eventId, event);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue