feat(appstore): default-select primary office suite when none is installed

Falls back to the isPrimary suite so the UI shows a pre-selection rather
than nothing, without triggering the watcher (watch() is lazy by default).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
This commit is contained in:
James Manuel 2026-05-28 10:18:18 +02:00 committed by backportbot[bot]
parent a0da3e092f
commit de8c3df284

View file

@ -32,7 +32,7 @@ function getInitialSuite() {
return suite.id
}
}
return null
return OFFICE_SUITES.find((s) => s.isPrimary)?.id ?? null
}
/**