[SYNC]
This commit is contained in:
@@ -123,10 +123,9 @@ class AstromicFormController extends FormController {
|
||||
|
||||
/// Remove the value of a hosted state variable using it's ID.
|
||||
void removeValue(String id) {
|
||||
if (!_hostedValues.keys.toList().contains(id)) {
|
||||
throw Exception('Value of id `$id` not found to be removed.');
|
||||
if (_hostedValues.keys.toList().contains(id)) {
|
||||
_hostedValues.remove(id);
|
||||
}
|
||||
_hostedValues.remove(id);
|
||||
}
|
||||
|
||||
/// Validate hosted values.
|
||||
|
||||
Reference in New Issue
Block a user