fix(boards): issues with old-import board name containing spaces (#4052)

This commit is contained in:
Meier Lukas
2025-09-12 18:44:37 +02:00
committed by GitHub
parent 3703f428b0
commit f7471b6c63
5 changed files with 11 additions and 3 deletions

View File

@@ -61,6 +61,10 @@ const getBoardAndPermissionsAsync = async (params: Awaited<Props["params"]>) =>
notFound();
}
if (error instanceof TRPCError && error.code === "BAD_REQUEST") {
notFound();
}
throw error;
}
};

View File

@@ -45,6 +45,10 @@ export const createBoardLayout = <TParams extends Params>({
notFound();
}
if (error instanceof TRPCError && error.code === "BAD_REQUEST") {
notFound();
}
throw error;
});
const colorScheme = await getCurrentColorSchemeAsync();