Skip to content

Commit

Permalink
fix: inline resource type should use inline form
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Sep 18, 2024
1 parent a59e6f7 commit 675716d
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function setAllTo(value: any) {
</template>

<template v-if="field.type === 'resource'">
<template v-if="childResourceType?.inline">
<template v-if="!childResourceType || childResourceType.inline">
<template v-if="field.array">
<MonacoEditor
v-if="editCode"
Expand Down Expand Up @@ -362,15 +362,11 @@ function setAllTo(value: any) {

<template #popper>
<ResourceReferencesPreview
v-if="childResourceType"
:field="field"
:value="modelValue"
:resource-type="childResourceType"
class="max-w-[800px] min-h-[200px] max-h-[600px]"
/>
<div v-else class="p-2">
Resource type not found
</div>
</template>
</Menu>
</template>
Expand Down

0 comments on commit 675716d

Please sign in to comment.