瀏覽代碼

Fix current error (#2856)

* install github app button

* general error component

* auto-generate cluster name

* fix button text color

* infra tab for porter user

* take care of current-error

* take care of current-error
jusrhee 3 年之前
父節點
當前提交
cc15b4630d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dashboard/src/main/CurrentError.tsx

+ 1 - 1
dashboard/src/main/CurrentError.tsx

@@ -37,7 +37,7 @@ export default class CurrentError extends Component<PropsType, StateType> {
       currentError = String(currentError);
     }
 
-    if (currentError) {
+    if (currentError && currentError !== "" && currentError !== "{}" && currentError !== undefined && currentError.length > 3) {
       if (!this.state.expanded) {
         return (
           <StyledCurrentError>