diff --git a/web/repertory/lib/screens/add_mount_screen.dart b/web/repertory/lib/screens/add_mount_screen.dart index d08c9225..109a7cc5 100644 --- a/web/repertory/lib/screens/add_mount_screen.dart +++ b/web/repertory/lib/screens/add_mount_screen.dart @@ -192,17 +192,14 @@ class _AddMountScreenState extends State { } void _handleChange(String mountType) { - if (_mountType == mountType) { - return; - } - setState(() { - final changed = _mountType != mountType; + final changedFromSia = _mountType != mountType && mountType == 'Sia'; + _mountType = mountType; _mountNameController.text = (mountType == 'Sia' && _mountNameController.text.isEmpty) ? 'default' - : changed + : changedFromSia ? '' : _mountNameController.text;