|
@@ -48,7 +48,11 @@ class SingleSelectAction with ISelectOptionAction {
|
|
|
(option) {
|
|
|
typeOption.freeze();
|
|
|
typeOption = typeOption.rebuild((typeOption) {
|
|
|
- typeOption.options.insert(0, option);
|
|
|
+ final exists = typeOption.options
|
|
|
+ .any((element) => element.name == option.name);
|
|
|
+ if (!exists) {
|
|
|
+ typeOption.options.insert(0, option);
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
return typeOption.options;
|