Skip to content

Commit

Permalink
Fix lint error for generated code about confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
flybayer committed May 4, 2020
1 parent 10bb587 commit 4ac7800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/generator/templates/page/__id__.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const __ModelName__ = () => {
<button
type="button"
onClick={async () => {
if (confirm('This will be deleted')) {
if (window.confirm('This will be deleted')) {
await delete__ModelName__({where: {id: __modelName__.id}})
router.push('/__modelNames__')
}
Expand Down

0 comments on commit 4ac7800

Please sign in to comment.