Browse Source

Add clear message when topic creation fails (#1669)

Ricardo Brasil 3 năm trước cách đây
mục cha
commit
e85e1aafa1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      kafka-ui-react-app/src/components/Topics/New/New.tsx

+ 1 - 1
kafka-ui-react-app/src/components/Topics/New/New.tsx

@@ -40,7 +40,7 @@ const New: React.FC = () => {
       const response = await getResponse(error as Response);
       const alert: FailurePayload = {
         subject: ['schema', data.name].join('-'),
-        title: `Schema ${data.name}`,
+        title: `${response.message}`,
         response,
       };