Просмотр исходного кода

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

visuddhinanda 2 лет назад
Родитель
Сommit
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>
         <Select
-          defaultValue={"new"}
+          defaultValue={important ? "all" : "new"}
           style={{ width: 180 }}
           disabled={important}
           onChange={(value: string) => {