This commit is contained in:
2025-04-12 15:56:22 +02:00
parent abbe07c500
commit 656abd2330

View File

@@ -123,10 +123,9 @@ class AstromicFormController extends FormController {
/// Remove the value of a hosted state variable using it's ID. /// Remove the value of a hosted state variable using it's ID.
void removeValue(String id) { void removeValue(String id) {
if (!_hostedValues.keys.toList().contains(id)) { if (_hostedValues.keys.toList().contains(id)) {
throw Exception('Value of id `$id` not found to be removed.'); _hostedValues.remove(id);
} }
_hostedValues.remove(id);
} }
/// Validate hosted values. /// Validate hosted values.