Skip to content

Commit 408a76e

Browse files
authored
Fix infinite loop in React when removing current directory as bookmark (#13560)
- Fix infinite loop in React when removing current directory as bookmark # Important Notes None
1 parent 1b33fdd commit 408a76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/gui/src/dashboard/providers/DriveProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function getDriveLocation() {
5454
// eslint-disable-next-line react-refresh/only-export-components
5555
export function setDriveLocation(directoryId: DirectoryId | null, categoryId?: CategoryId | null) {
5656
driveLocationStore.setState({
57-
...(categoryId != null ? { categoryId } : {}),
57+
...(categoryId !== undefined ? { categoryId } : {}),
5858
directoryId,
5959
})
6060
}

0 commit comments

Comments
 (0)