Skip to content

Commit

Permalink
fix(copy-form): remove unnecessary attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabauke committed Dec 20, 2023
1 parent 1044327 commit 3340b05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class CfbFormEditorCopyModal extends Component {
@dropTask
*submit(changeset) {
try {
const form = yield this.apollo.mutate(
yield this.apollo.mutate(
{
mutation: copyFormMutation,
variables: {
Expand All @@ -53,7 +53,7 @@ export default class CfbFormEditorCopyModal extends Component {
this.intl.t("caluma.form-builder.notification.form.create.success"),
);

this.router.transitionTo("edit", form.slug);
this.router.transitionTo("edit", changeset.slug);
} catch (e) {
this.notification.danger(
this.intl.t("caluma.form-builder.notification.form.create.error"),
Expand Down
3 changes: 0 additions & 3 deletions packages/form-builder/addon/gql/mutations/copy-form.graphql
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#import FormInfo from '../fragments/form-info.graphql'

mutation CopyForm($input: CopyFormInput!) {
copyForm(input: $input) {
form {
id
...FormInfo
}
clientMutationId
}
Expand Down

0 comments on commit 3340b05

Please sign in to comment.