Browse Source

chore(gui-v2): lint

pull/3078/head
Wing-Kam Wong 2 years ago
parent
commit
fcd3e682c0
  1. 6
      packages/nc-gui-v2/components/smartsheet/Form.vue
  2. 2
      packages/nc-gui-v2/composables/useViewData.ts

6
packages/nc-gui-v2/components/smartsheet/Form.vue

@ -528,11 +528,7 @@ onMounted(async () => {
</a-form-item>
<div class="items-center flex">
<span class="text-sm text-gray-500 mr-2">{{ $t('general.required') }}</span>
<a-switch
v-model:checked="element.required"
class="my-2"
@change="updateColMeta(element)"
/>
<a-switch v-model:checked="element.required" class="my-2" @change="updateColMeta(element)" />
</div>
</div>
<span class="text-gray-500">{{ element.description }}</span>

2
packages/nc-gui-v2/composables/useViewData.ts

@ -209,7 +209,7 @@ export function useViewData(
const deleteRowById = async (id: string) => {
if (!id) {
throw new Error('Delete not allowed for table which doesn\'t have primary Key')
throw new Error("Delete not allowed for table which doesn't have primary Key")
}
const res: any = await $api.dbViewRow.delete(

Loading…
Cancel
Save