fix: Handle s3object in Deno and Bun (#2851)

This commit is contained in:
Guillaume Bouvignies
2023-12-13 23:02:48 +01:00
committed by GitHub
parent 850cf5df36
commit 6d51535539
+4 -1
View File
@@ -441,7 +441,10 @@
<span class="text-2xs text-tertiary">Loading resource types...</span>
{:else if inputCat == 'resource-object' && (resourceTypes == undefined || (format.split('-').length > 1 && resourceTypes.includes(format.substring('resource-'.length))))}
<ObjectResourceInput {disablePortal} {format} bind:value {showSchemaExplorer} />
{:else if inputCat == 'resource-object' && format.split('-').length > 1 && format.replace('resource-', '') == 's3object'}
{:else if inputCat == 'resource-object' && format.split('-').length > 1 && format
.replace('resource-', '')
.replace('_', '')
.toLowerCase() == 's3object'}
<div class="flex flex-col w-full gap-1">
<JsonEditor
bind:editor