mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
fix: datasources/dataqueries refresh post-addition (#3140)
This commit is contained in:
parent
5d076bc5fd
commit
8a7a1d21ad
1 changed files with 8 additions and 2 deletions
|
|
@ -408,8 +408,11 @@ class Editor extends React.Component {
|
|||
this.initComponentVersioning();
|
||||
};
|
||||
|
||||
/**
|
||||
* https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/readyState
|
||||
*/
|
||||
dataSourcesChanged = () => {
|
||||
if (this.socket instanceof WebSocket) {
|
||||
if (this.socket instanceof WebSocket && this.socket?.readyState === WebSocket.OPEN) {
|
||||
this.socket?.send(
|
||||
JSON.stringify({
|
||||
event: 'events',
|
||||
|
|
@ -421,9 +424,12 @@ class Editor extends React.Component {
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/readyState
|
||||
*/
|
||||
dataQueriesChanged = () => {
|
||||
this.setState({ addingQuery: false }, () => {
|
||||
if (this.socket instanceof WebSocket) {
|
||||
if (this.socket instanceof WebSocket && this.socket?.readyState === WebSocket.OPEN) {
|
||||
this.socket?.send(
|
||||
JSON.stringify({
|
||||
event: 'events',
|
||||
|
|
|
|||
Loading…
Reference in a new issue