diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/AddRow.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/AddRow.vue index dffca10e5e..a97812e527 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/AddRow.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/AddRow.vue @@ -7,7 +7,7 @@ const isLocked = inject(IsLockedInj) const openNewRecordFormHook = inject(OpenNewRecordFormHookInj)! const onClick = () => { - if (!isLocked) openNewRecordFormHook.trigger() + if (!isLocked?.value) openNewRecordFormHook.trigger() }