diff --git a/web/repertory/lib/models/mount_list.dart b/web/repertory/lib/models/mount_list.dart index 86bc16ec..309cfb7d 100644 --- a/web/repertory/lib/models/mount_list.dart +++ b/web/repertory/lib/models/mount_list.dart @@ -12,7 +12,7 @@ class MountList with ChangeNotifier { MountConfig? item = _items.firstWhereOrNull( (cfg) => cfg.name == config.name, ); - if (item == null) { + if (item != null) { throw DuplicateMountException(name: config.name); }