From fc3e52a957cce1c8ac68b5b9cdf2bee6fdf3b651 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 2 Apr 2026 19:42:12 +0200 Subject: [PATCH] Update defaultTarget selection logic in App.tsx --- src/app/App.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index a049c431..0d8a321b 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1657,14 +1657,7 @@ export function App({ store, initialStatusMessage }: AppProps) { return; } - const defaultTarget = soundEmitterOptions.find(({ entity }) => { - if (entity.audioAssetId === null) { - return false; - } - - const asset = editorState.document.assets[entity.audioAssetId]; - return asset?.kind === "audio"; - })?.entity; + const defaultTarget = playableSoundEmitterOptions[0]?.entity; if (defaultTarget === undefined) { setStatusMessage("Author a Sound Emitter with an audio asset before adding sound links.");