Преглед изворни кода

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>
         <Select
-          defaultValue={"new"}
+          defaultValue={important ? "all" : "new"}
           style={{ width: 180 }}
           disabled={important}
           onChange={(value: string) => {