Skip to content

Commit

Permalink
fix: prevent error when child resource type is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Sep 18, 2024
1 parent 7b9c2af commit a59e6f7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,15 @@ function setAllTo(value: any) {

<template #popper>
<ResourceReferencesPreview
v-if="childResourceType"
:field="field"
:value="modelValue"
:resource-type="childResourceType!"
: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 a59e6f7

Please sign in to comment.