diff --git a/web/repertory/lib/screens/add_mount_screen.dart b/web/repertory/lib/screens/add_mount_screen.dart index 87a0c844..ae2fa1a4 100644 --- a/web/repertory/lib/screens/add_mount_screen.dart +++ b/web/repertory/lib/screens/add_mount_screen.dart @@ -67,7 +67,9 @@ class _AddMountScreenState extends State { const SizedBox(width: constants.padding), DropdownButton( value: _mountType, - onChanged: (mountType) => _handleChange(mountType ?? ''), + onChanged: (mountType) { + _handleChange(mountType ?? ''); + }, items: constants.providerTypeList .map>((item) { @@ -187,6 +189,12 @@ class _AddMountScreenState extends State { void _handleChange(String mountType) { setState(() { _mountType = mountType; + if (_mountType == "Sia" && _mountNameController.text.isEmpty) { + _mountNameController.text = 'default'; + } else { + _mountNameController.text = ''; + } + _mount = (_mountNameController.text.isEmpty) ? null