From f75b1e40fab4f3e746c0950b35a849cff3f829c2 Mon Sep 17 00:00:00 2001 From: Danielo Rodriguez Date: Mon, 16 Dec 2024 19:48:09 +0100 Subject: [PATCH] refactor: ensure you get an error in the form builder --- .../.obsidian/plugins/modal-form/data.json | 15 +++++---------- src/views/FormBuilder.svelte | 6 +++++- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/EXAMPLE_VAULT/.obsidian/plugins/modal-form/data.json b/EXAMPLE_VAULT/.obsidian/plugins/modal-form/data.json index 2add076..54a5fd8 100644 --- a/EXAMPLE_VAULT/.obsidian/plugins/modal-form/data.json +++ b/EXAMPLE_VAULT/.obsidian/plugins/modal-form/data.json @@ -369,24 +369,19 @@ { "title": "Long list tip example", "name": "long-list", - "version": "1", "fields": [ { "name": "chore", "label": "Chores", "description": "Pick a chore to do", + "isRequired": false, "input": { "type": "dataview", - "allowUnknownValues": false, - "hidden": false, - "options": [], - "source": "notes", - "query": "[\n 'Wash the dishes',\n 'Take out the trash',\n 'Do the laundry',\n 'Mow the lawn',\n 'Feed the cat',\n 'Feed the dog',\n 'Feed the fish',\n 'Feed the birds',\n 'Feed the turtles',\n 'Feed the rabbits',\n 'Feed the turtles',]", - "multi_select_options": [] - }, - "isRequired": false + "query": "[\n 'Wash the dishes',\n 'Take out the trash',\n 'Do the laundry',\n 'Mow the lawn',\n 'Feed the cat',\n 'Feed the dog',\n 'Feed the fish',\n 'Feed the birds',\n 'Feed the turtles',\n 'Feed the rabbits',\n 'Feed the turtles',]" + } } - ] + ], + "version": "1" } ] } \ No newline at end of file diff --git a/src/views/FormBuilder.svelte b/src/views/FormBuilder.svelte index d529789..67013a9 100644 --- a/src/views/FormBuilder.svelte +++ b/src/views/FormBuilder.svelte @@ -1,6 +1,6 @@