-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(front): duplicate projects and scenarios [MARXAN-599] #375
Conversation
This pull request is being automatically deployed with Vercel (learn more). marxan – ./app🔍 Inspect: https://vercel.com/vizzuality1/marxan/9cCg9gRoHqMgEDQooYZtRTWijtaU marxan-storybook – ./app🔍 Inspect: https://vercel.com/vizzuality1/marxan-storybook/ZQk189k6TxmyweMuR3jmpGBMuYFC |
I am not sure if success/error toasts must be mapped to show various in column |
|
||
const onDuplicate = useCallback(() => { | ||
// Name must be the new one defined by the user | ||
duplicateProjectMutation.mutate({ id, data: name }, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data
is not part of the props, that's why the deploy is failling. For now, don't add it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved it.
Duplicate projects and scenarios
Overview
At the moment only posting a project id to be able to generate a response of this data project with a "duplicate key" and "user who duplicates it".
Feature relevant tickets
MARXAN-599