mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
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:
parent
a0da3e092f
commit
de8c3df284
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ function getInitialSuite() {
|
|||
return suite.id
|
||||
}
|
||||
}
|
||||
return null
|
||||
return OFFICE_SUITES.find((s) => s.isPrimary)?.id ?? null
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue