Skip to content

Commit 7a72bb8

Browse files
committed
Fix bug with adding page to new space via popup
- Prev would update the UI state, but not DB. Thus you'd think that the space was created and the page was added to it, but only the space was created. Page never got indexed.
1 parent 416044e commit 7a72bb8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/custom-lists/ui/CollectionPicker/logic.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,7 @@ export default class SpacePickerLogic extends UILogic<
10771077
const nextState = this.withMutation(previousState, mutation)
10781078

10791079
this.calcNextFocusedEntry(nextState)
1080+
this.dependencies.selectEntry(localListId)
10801081

10811082
return localListId
10821083
}

src/custom-lists/ui/CollectionPicker/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type SpacePickerTab = 'user-lists' | 'page-links'
1818

1919
export interface SpacePickerState {
2020
query: string
21+
// TODO: Why is this an array? Needs renaming
2122
newEntryName: {
2223
unifiedId: UnifiedList['unifiedId']
2324
name: UnifiedList['name']

0 commit comments

Comments
 (0)