瀏覽代碼

defaultValue={important ? "all" : "new"}

visuddhinanda 2 年之前
父節點
當前提交
9fd9b12fd9
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      dashboard/src/components/channel/ChannelSentDiff.tsx

+ 1 - 1
dashboard/src/components/channel/ChannelSentDiff.tsx

@@ -131,7 +131,7 @@ const ChannelSentDiffWidget = ({
           上一步
           上一步
         </Button>
         </Button>
         <Select
         <Select
-          defaultValue={"new"}
+          defaultValue={important ? "all" : "new"}
           style={{ width: 180 }}
           style={{ width: 180 }}
           disabled={important}
           disabled={important}
           onChange={(value: string) => {
           onChange={(value: string) => {