π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(Type Error): can't access property "validate", I.value is undefined
Ramesh Mane8001a509fac0
diff --git a/packages/nc-gui/components/dlg/LockView.vue b/packages/nc-gui/components/dlg/LockView.vueindex 13bbaaeaf7..b3eba4b860 100644--- a/packages/nc-gui/components/dlg/LockView.vue+++ b/packages/nc-gui/components/dlg/LockView.vue@@ -56,7 +56,7 @@ const changeLockType = async () => {if (!view.value?.id) returnif (changeType.value === LockType.Locked) {- const valid = await formValidator.value.validate()+ const valid = await formValidator.value?.validate?.()if (!valid) return}@@ -107,7 +107,7 @@ watch(if (changeType.value !== LockType.Locked) returntry {- isErrored.value = !(await formValidator.value.validate())+ isErrored.value = !(await formValidator.value?.validate?.())} catch (e: any) {isErrored.value = true}