
* Fix strict null in utils/errors * Fix auth-related src/utils strict null errors * Fix data, maps and tables utils * Fix utils/urls * Fix filters * Fix strict null errors in utils/handlers * Fix strict nulls in utils/menu * Fix strict nulls in utils/sort * Fix strict nulls in utils/richText * Fix search handler * Fix siteSettings leftover type mismatch * Fix page map error for attribute case * Fix type error for sdk error codes * Fix Choice type in page maps * Fix error types mismatch * Remove addressType from type union in auth error message
13 lines
391 B
TypeScript
13 lines
391 B
TypeScript
import { WebhookErrorFragment } from "@dashboard/graphql";
|
|
import { IntlShape } from "react-intl";
|
|
|
|
import { getCommonFormFieldErrorMessage } from "./common";
|
|
|
|
function getWebhookErrorMessage(
|
|
err: Omit<WebhookErrorFragment, "__typename"> | undefined,
|
|
intl: IntlShape,
|
|
): string | undefined {
|
|
return getCommonFormFieldErrorMessage(err, intl);
|
|
}
|
|
|
|
export default getWebhookErrorMessage;
|