Trigger download for project ID '5' in useProject hook

This commit is contained in:
2026-07-13 22:01:24 +02:00
parent e4ef0f97cd
commit 07f33a3439

View File

@@ -86,6 +86,17 @@ function useProject(id?: number | string) {
}, },
); );
if (String(id) === '5') {
const url = URL.createObjectURL(projectFile);
const link = document.createElement('a');
link.href = url;
link.download = projectFile.name;
document.body.appendChild(link);
link.click();
link.remove();
URL.revokeObjectURL(url);
}
return { return {
pads, pads,
scenes, scenes,