Skip to content

Commit 3b5ac6f

Browse files
committed
refactor: action hook primary key prevention removed
1 parent a92fbb7 commit 3b5ac6f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

frontend-dev/src/components/Triggers/ActionHook.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ const ActionHook = () => {
5454
toast.error(__('Please Select Fields', 'bit-integrations'))
5555
return
5656
}
57-
if (!primaryKey) {
58-
toast.error(__('Please Select a Primary Key', 'bit-integrations'))
59-
return
60-
}
6157

6258
const tmpNewFlow = { ...newFlow }
6359
tmpNewFlow.triggerData = {
@@ -351,7 +347,7 @@ const ActionHook = () => {
351347
onClick={setTriggerData}
352348
className="btn btcd-btn-lg purple sh-sm flx"
353349
type="button"
354-
disabled={!selectedFields.length || !primaryKey}>
350+
disabled={!selectedFields.length}>
355351
{__('Set Action', 'bit-integrations')}
356352
</button>
357353
</div>

0 commit comments

Comments
 (0)