Skip to content

Commit

Permalink
fix: change the condition of render SecurityDialog to prevent error o…
Browse files Browse the repository at this point in the history
…f null ref
  • Loading branch information
devbymak committed Apr 24, 2024
1 parent 427bb3d commit ca137a7
Showing 1 changed file with 1 addition and 1 deletion.
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 ca137a7

Please sign in to comment.