{#each targets as target, i}
{#if target.rule.kind === 'classRule'} {@const documentClass = client.getHierarchy().getClass(target.rule.ofClass)}
{:else if target.rule.kind === 'spaceRule'} {/if}
{ void client.diffUpdate(target, { target: evt.detail || null }) }} /> {#if target.rule.kind === 'spaceRule'}
{/if}
{/each} {#if showCreate && value !== undefined} {@const space = value._id}
=> { void client.createDoc(tracker.class.RelatedIssueTarget, space, { target: evt.detail || null, rule: { kind: 'spaceRule', space } }) }} />
{/if}