diff --git a/packages/manager/src/hooks/useOrderV2.test.tsx b/packages/manager/src/hooks/useOrderV2.test.tsx index 37c4f632976..6e06c77020e 100644 --- a/packages/manager/src/hooks/useOrderV2.test.tsx +++ b/packages/manager/src/hooks/useOrderV2.test.tsx @@ -106,7 +106,7 @@ describe('useOrderV2', () => { }); }); - it.only('should update URL and preferences when handleOrderChange is called', async () => { + it('should update URL and preferences when handleOrderChange is called', async () => { const mutatePreferencesMock = vi.fn(); server.use( http.put('*/profile/preferences', async ({ request }) => { diff --git a/packages/manager/src/routes/volumes/index.ts b/packages/manager/src/routes/volumes/index.ts index 296f548d33a..87db6e3ce86 100644 --- a/packages/manager/src/routes/volumes/index.ts +++ b/packages/manager/src/routes/volumes/index.ts @@ -45,6 +45,11 @@ const volumesCreateRoute = createRoute({ import('./volumesLazyRoutes').then((m) => m.volumeCreateLazyRoute) ); +type VolumeActionRouteParams
= {
+ action: VolumeAction;
+ volumeId: P;
+};
+
const volumeActionRoute = createRoute({
beforeLoad: async ({ params }) => {
if (!(params.action in volumeAction)) {
@@ -55,16 +60,16 @@ const volumeActionRoute = createRoute({
}
},
getParentRoute: () => volumesRoute,
- parseParams: ({
- action,
- volumeId,
- }: {
- action: VolumeAction;
- volumeId: string;
- }) => ({
- action,
- volumeId: Number(volumeId),
- }),
+ params: {
+ parse: ({ action, volumeId }: VolumeActionRouteParams