From bdbeee0db58834b2c9633ef8a75accedfa3a7f0f Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 8 Jul 2022 23:45:36 +0800 Subject: [PATCH] fix(console): specify toast type (#1499) --- .../src/pages/ConnectorDetails/components/ConnectorContent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/console/src/pages/ConnectorDetails/components/ConnectorContent.tsx b/packages/console/src/pages/ConnectorDetails/components/ConnectorContent.tsx index 79b6ebad5..6288e915c 100644 --- a/packages/console/src/pages/ConnectorDetails/components/ConnectorContent.tsx +++ b/packages/console/src/pages/ConnectorDetails/components/ConnectorContent.tsx @@ -55,7 +55,7 @@ const ConnectorContent = ({ isDeleted, connectorData, onConnectorUpdated }: Prop const handleSave = async () => { if (!config) { - toast(t('connector_details.save_error_empty_config')); + toast.error(t('connector_details.save_error_empty_config')); return; }