We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df63ce3 commit 2da9e9cCopy full SHA for 2da9e9c
apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsx
@@ -220,9 +220,9 @@ export const PolicyEditorPanel = memo(function ({
220
221
if (selectedPolicy.command === 'INSERT') {
222
// [Joshen] Cause editorOneRef will be the check statement in this scenario
223
- if (selectedPolicy.check !== null && selectedPolicy.check !== using) payload.check = using
+ if (selectedPolicy.check !== using) payload.check = using
224
} else {
225
- if (selectedPolicy.check !== null && selectedPolicy.check !== check) payload.check = check
+ if (selectedPolicy.check !== check) payload.check = check
226
}
227
228
if (Object.keys(payload).length === 0) return onSelectCancel()
0 commit comments