fix(onboarding): preserve selected integrations when navigating back
The multi-select grid initializes its own internal Set on mount, so returning from the configure phase to the select phase lost all selections. Accept an initialSelection prop and pass the parent's selectedKinds to restore state on re-mount.
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -102,7 +102,7 @@ export const InitIntegrations = () => {
|
||||
<Stack>
|
||||
<Text>{t("description")}</Text>
|
||||
|
||||
<IntegrationMultiSelectGrid onSelectionChange={handleSelectionChange} />
|
||||
<IntegrationMultiSelectGrid onSelectionChange={handleSelectionChange} initialSelection={selectedKinds} />
|
||||
|
||||
<Group justify="space-between">
|
||||
<Button variant="subtle" onClick={() => void finishSetupAsync()}>
|
||||
|
||||
Reference in new issue
Block a user