Skip to content

Commit

Permalink
Fix pushing to wrong model after duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
albingroen committed Jan 17, 2023
1 parent cf1fe81 commit c765310
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/schemas/[schemaId]/models/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ const Model = () => {
},
],
});
push(`/schemas/${schema.name}/models/${Number(id) + 1}`);
push(
`/schemas/${schema.name}/models/${schema.models.length}`
);
}
}}
anchor="right"
Expand Down

1 comment on commit c765310

@vercel
Copy link

@vercel vercel bot commented on c765310 Jan 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.