Skip to content

Commit 0229f95

Browse files
committed
chore: update docs
1 parent dfdfaa4 commit 0229f95

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/library-authoring/routes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ export const useLibraryRoutes = (): LibraryRoutesData => {
233233
route = ROUTES.HOME;
234234
}
235235

236+
// Since index is just the order number of the selectedItemId
237+
// clear index if selectedItemId is undefined
236238
if (routeParams.selectedItemId === undefined) {
237239
routeParams.index = undefined;
238240
}

0 commit comments

Comments
 (0)