Skip to content

Commit

Permalink
fix tabs active
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigopivi committed Aug 22, 2018
1 parent b9d08c8 commit dd3cfb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/components/Editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ export default class Editor extends React.Component<{}, IEditorState> {
this.debouncedTabDSLValidation();
}
});
flask.updateCode(this.tabs[this.state.activeTabIndex].value);
if (this.tabs && this.tabs[this.state.activeTabIndex]) {
flask.updateCode(this.tabs[this.state.activeTabIndex].value);
}
flask.setLineNumber();
this.codeflask = flask;
});
Expand Down

0 comments on commit dd3cfb5

Please sign in to comment.