Skip to content

Commit

Permalink
🐛 Check also array length for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Jun 17, 2021
1 parent 1b9f7e7 commit 6b5add5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ export function canTransition({
Boolean(newColumn) &&
!newLayer.incompleteColumns?.[columnId] &&
filterOperations(newColumn) &&
!newDefinition.getErrorMessage?.(newLayer, columnId, indexPattern)
!newDefinition.getErrorMessage?.(newLayer, columnId, indexPattern)?.length
);
} catch (e) {
return false;
Expand Down

0 comments on commit 6b5add5

Please sign in to comment.