"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.showWorkflowError = void 0;
var mdm_sdk_1 = require("@reltio/mdm-sdk");
var errors_1 = require("../../../helpers/errors");
var showWorkflowError = function (apiError) {
    if (apiError === void 0) { apiError = {}; }
    var error = apiError.error;
    if ((error === null || error === void 0 ? void 0 : error.errorCode) === mdm_sdk_1.ApiErrorCode.WORKFLOW_IS_NOT_REGISTERED_ERROR) {
        return;
    }
    (0, errors_1.showDefaultErrorMessage)(error);
};
exports.showWorkflowError = showWorkflowError;
