Skip to content

Commit

Permalink
Merge branch 'alpha' into feat/2546
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza authored Apr 30, 2024
2 parents 520763f + 27ed692 commit a130d6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/dashboard/Data/Browser/Browser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ class Browser extends DashboardView {
this.props.schema
.dispatch(ActionTypes.CREATE_CLASS, { className })
.then(() => {
this.state.clp[className] = this.props.schema.data.get('CLPs').toJS()[className];
this.state.counts[className] = 0;
this.props.navigate(generatePath(this.context, 'browser/' + className));
})
Expand All @@ -388,6 +389,7 @@ class Browser extends DashboardView {
this.props.schema.dispatch(ActionTypes.DROP_CLASS, { className }).then(
() => {
this.setState({ showDropClassDialog: false });
delete this.state.clp[className];
delete this.state.counts[className];
this.props.navigate(generatePath(this.context, 'browser'));
},
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard/Data/Browser/BrowserToolbar.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ const BrowserToolbar = ({
disabled={isPendingEditCloneRows}
/>
{onAddRow && <div className={styles.toolbarSeparator} />}
{perms && enableSecurityDialog ? (
{enableSecurityDialog ? (
<SecurityDialog
ref={clpDialogRef}
disabled={!!relation || !!isUnique}
Expand Down

0 comments on commit a130d6f

Please sign in to comment.