fix: fix resource list in args being pre-pended with $res

This commit is contained in:
Ruben Fiszel
2024-08-30 12:39:41 +02:00
parent 5c82f815ae
commit 2397588355
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -409,7 +409,8 @@
/>
{:else if itemsType?.type == 'resource' && itemsType?.resourceType && resourceTypes?.includes(itemsType.resourceType)}
<ObjectResourceInput
bind:value={v}
value={v ? `$res:${v}` : undefined}
bind:path={v}
format={'resource-' + itemsType?.resourceType}
defaultValue={undefined}
/>
@@ -16,7 +16,7 @@
return typeof value === 'string' || value instanceof String
}
let path: string = ''
export let path: string = ''
function resourceToValue() {
if (path) {