diff --git a/plugins/process-resources/src/components/attributeEditors/RelContextPresenter.svelte b/plugins/process-resources/src/components/attributeEditors/RelContextPresenter.svelte index ff57025b240..1410789edaf 100644 --- a/plugins/process-resources/src/components/attributeEditors/RelContextPresenter.svelte +++ b/plugins/process-resources/src/components/attributeEditors/RelContextPresenter.svelte @@ -20,16 +20,19 @@ export let context: Context $: relation = context.relations[contextValue.name] + $: attr = contextValue.key !== '_id' && relation?.attributes?.find((p) => p.name === contextValue.key) -{#if contextValue.key === '_id'} - {relation.name} -{:else if relation !== undefined && attr} - {relation.name} - - +{#if relation !== undefined} + {#if contextValue.key === '_id'} + {relation.name} + {:else if attr} + {relation.name} + + + {/if} {/if}