mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
refactor(web): make Switch controlled-only and migrate call sites (#32399)
This commit is contained in:
@ -21,7 +21,7 @@ const FilterSwitch: FC<FilterSwitchProps> = ({
|
||||
{t('versionHistory.filter.onlyShowNamedVersions', { ns: 'workflow' })}
|
||||
</div>
|
||||
<Switch
|
||||
defaultValue={enabled}
|
||||
value={enabled}
|
||||
onChange={v => handleSwitch(v)}
|
||||
size="md"
|
||||
className="shrink-0"
|
||||
|
||||
Reference in New Issue
Block a user