From c28bb8834ef2c596634aa00cdcbd9013d53b2107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Demetrius=20Feij=C3=B3o?= Date: Wed, 6 Nov 2024 11:23:05 -0300 Subject: [PATCH] chore: fix ts errors --- picker-starter/src/components/FieldPlugin.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/picker-starter/src/components/FieldPlugin.vue b/picker-starter/src/components/FieldPlugin.vue index e85d45e..81c538b 100644 --- a/picker-starter/src/components/FieldPlugin.vue +++ b/picker-starter/src/components/FieldPlugin.vue @@ -8,19 +8,19 @@ import setup from '../picker.config' const plugin = useFieldPlugin() const content = computed(() => { - const content = plugin.data.content + const content = plugin.data?.content return typeof content === 'object' ? content : { name: pluginName } }) const setValue = (content: any) => { - plugin.actions.setContent({ + plugin.actions?.setContent({ plugin: pluginName, ...content, }) } const servicePluginParams = computed(() => { - return setup(plugin.data.options) + return setup(plugin.data?.options || {}) })