Skip to content

Commit

Permalink
chore: fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
demetriusfeijoo committed Nov 6, 2024
1 parent 35c6b30 commit c28bb88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions picker-starter/src/components/FieldPlugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {})
})
</script>

Expand Down

0 comments on commit c28bb88

Please sign in to comment.