Skip to content

Commit

Permalink
console: fix raw sql callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandra Sikora authored Feb 19, 2021
1 parent 2e0b6f3 commit cbc4a33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions console/src/components/Services/Data/RawSQL/Actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ const executeSQL = (isMigration, migrationName, statementTimeout, source) => (
.then(
data => {
if (isTableTrackChecked) {
dispatch(trackAllItems(sql, isMigration, migrationName, source)).then(
callback(data)
);
dispatch(
trackAllItems(sql, isMigration, migrationName, source)
).then(() => callback(data));
return;
}
callback(data);
Expand Down

0 comments on commit cbc4a33

Please sign in to comment.