Skip to content

Commit

Permalink
fix: download bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mumin-khan committed Apr 20, 2024
1 parent a13e99f commit 78f13be
Show file tree
Hide file tree
Showing 4 changed files with 630 additions and 404 deletions.
172 changes: 91 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"lint:fix": "eslint --max-warnings 0 --config .eslintrc . --fix",
"format:fix": "prettier --write \"**/*.{ts,tsx,json}\"",
"format:check": "prettier --check \"**/*.{ts,tsx,json}\"",
"prisma:docker" : "npm run prisma:migrate && npm run db:seed && npm run studio",
"prisma:docker": "npm run prisma:migrate && npm run db:seed && npm run studio",
"dev:docker": "npm run prisma:docker & next dev",
"prisma:migrate": "prisma migrate deploy",
"db:seed": "prisma db seed",
Expand Down
4 changes: 3 additions & 1 deletion src/components/print/Print.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export function Print() {
setTimeout(() => {
print();
opened = true;
window.close();
window.addEventListener('afterprint', () => {
window.close();
});
}, 2000);
}, []);

Expand Down
Loading

0 comments on commit 78f13be

Please sign in to comment.