Skip to content

Commit

Permalink
Clear state.data when setting relation to column type mismatch. (#1564)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdillick authored Jul 14, 2020
1 parent f04d507 commit db9f7e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dashboard/Data/Browser/Browser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ class Browser extends DashboardView {
setRelation(relation, filters) {
this.setState({
relation: relation,
data: null,
}, () => {
let filterQueryString;
if (filters && filters.size) {
Expand Down Expand Up @@ -937,7 +938,7 @@ class Browser extends DashboardView {
onDialogToggle(opened){
this.setState({showPermissionsDialog: opened});
}

renderContent() {
let browser = null;
let className = this.props.params.className;
Expand Down

0 comments on commit db9f7e2

Please sign in to comment.