chore: remove null check

This commit is contained in:
Abbey Yacoe
2025-06-03 15:21:02 +02:00
parent 79db292c4d
commit c9838359a1
4 changed files with 4 additions and 4 deletions
@@ -137,7 +137,7 @@
? ariaLabel
: `Edge from ${source} to ${target}`}
aria-describedby={focusable ? `${ARIA_EDGE_DESC_KEY}-${store.flowId}` : undefined}
role={edge.ariaRole === null ? undefined : edge.ariaRole || (focusable ? 'group' : 'img')}
role={edge.ariaRole ?? (focusable ? 'group' : 'img')}
aria-roledescription={edge.ariaRoleDescription || 'edge'}
onkeydown={focusable ? onkeydown : undefined}
tabindex={focusable ? 0 : undefined}