From 7cfc07b02ac3ac6feeea515c46b2900ebf6944a8 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Mon, 20 Jul 2026 02:46:50 +0500 Subject: [PATCH] Fix relation attribute editor Signed-off-by: Denis Bykhov --- .../RelContextPresenter.svelte | 17 ++-- .../settings/ProcessAttributeEditor.svelte | 78 +++++++++++++------ plugins/process-resources/src/exporter.ts | 2 +- 3 files changed, 66 insertions(+), 31 deletions(-) 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}