2
0
visuddhinanda 2 жил өмнө
parent
commit
38c94623dd

+ 12 - 10
dashboard/src/components/discussion/DiscussionShow.tsx

@@ -146,16 +146,18 @@ const DiscussionShowWidget = ({
       size="small"
       size="small"
       title={
       title={
         <Space direction="vertical">
         <Space direction="vertical">
-          <Text
-            strong
-            onClick={(e) => {
-              if (typeof onSelect !== "undefined") {
-                onSelect(e, data);
-              }
-            }}
-          >
-            {data.title}
-          </Text>
+          {data.title ? (
+            <Text
+              strong
+              onClick={(e) => {
+                if (typeof onSelect !== "undefined") {
+                  onSelect(e, data);
+                }
+              }}
+            >
+              {data.title}
+            </Text>
+          ) : undefined}
           <Text type="secondary">
           <Text type="secondary">
             <Space>
             <Space>
               {data.user.nickName}
               {data.user.nickName}