Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
amitmiran137 committed Dec 18, 2020
1 parent 0d8b758 commit 197ba55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions superset-frontend/src/middleware/asyncEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ const initAsyncEvents = (options: AsyncEventOptions) => {
break;
case JOB_STATUS.ERROR:
const errors = [parseErrorJson(asyncEvent)];
store.dispatch(
errorAction(componentId, errors)
);
store.dispatch(errorAction(componentId, errors));
break;
default:
console.warn('received event with status', asyncEvent.status);
Expand All @@ -165,7 +163,9 @@ const initAsyncEvents = (options: AsyncEventOptions) => {

const fetchResults = await Promise.all(fetchDataEvents);
fetchResults.forEach(result => {
const data = Array.isArray(result.data) ? result.data : [result.data];
const data = Array.isArray(result.data)
? result.data
: [result.data];
if (result.status === 'success') {
store.dispatch(successAction(result.componentId, data));
} else {
Expand Down

0 comments on commit 197ba55

Please sign in to comment.