Skip to content

Commit

Permalink
added error message
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Jun 11, 2024
1 parent e7d9629 commit 5f9da25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/floweditor/FlowEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Button } from 'components/UI/Form/Button/Button';
import { APP_NAME } from 'config/index';
import { Simulator } from 'components/simulator/Simulator';
import { DialogBox } from 'components/UI/DialogBox/DialogBox';
import { setNotification } from 'common/notification';
import { setErrorMessage, setNotification } from 'common/notification';
import { PUBLISH_FLOW, RESET_FLOW_COUNT } from 'graphql/mutations/Flow';
import { EXPORT_FLOW, GET_FLOW_DETAILS, GET_FREE_FLOW } from 'graphql/queries/Flow';
import { getOrganizationServices, setAuthHeaders } from 'services/AuthService';
Expand Down Expand Up @@ -94,6 +94,9 @@ export const FlowEditor = () => {
const { exportData } = exportFlow;
exportFlowMethod(exportData, flowTitle);
},
onError: (error) => {
setErrorMessage(error);

Check warning on line 98 in src/components/floweditor/FlowEditor.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/floweditor/FlowEditor.tsx#L98

Added line #L98 was not covered by tests
},
});
const [resetFlowCountMethod] = useMutation(RESET_FLOW_COUNT, {
onCompleted: ({ resetFlowCount }) => {
Expand Down

0 comments on commit 5f9da25

Please sign in to comment.