mirror of
https://github.com/foss42/apidash.git
synced 2025-05-28 20:27:04 +08:00
fix Unmodifiable List error
This commit is contained in:
@ -49,11 +49,13 @@ class EditRequestHeadersState extends ConsumerState<EditRequestHeaders> {
|
||||
kNameValueEmptyModel,
|
||||
]
|
||||
: rH + [kNameValueEmptyModel];
|
||||
isRowEnabledList = ref
|
||||
.read(selectedRequestModelProvider)
|
||||
?.httpRequestModel
|
||||
?.isHeaderEnabledList ??
|
||||
List.filled(rH?.length ?? 0, true, growable: true);
|
||||
isRowEnabledList = [
|
||||
...(ref
|
||||
.read(selectedRequestModelProvider)
|
||||
?.httpRequestModel
|
||||
?.isHeaderEnabledList ??
|
||||
List.filled(rH?.length ?? 0, true, growable: true))
|
||||
];
|
||||
isRowEnabledList.add(false);
|
||||
isAddingRow = false;
|
||||
|
||||
|
@ -49,11 +49,13 @@ class EditRequestURLParamsState extends ConsumerState<EditRequestURLParams> {
|
||||
kNameValueEmptyModel,
|
||||
]
|
||||
: rP + [kNameValueEmptyModel];
|
||||
isRowEnabledList = ref
|
||||
.read(selectedRequestModelProvider)
|
||||
?.httpRequestModel
|
||||
?.isParamEnabledList ??
|
||||
List.filled(rP?.length ?? 0, true, growable: true);
|
||||
isRowEnabledList = [
|
||||
...(ref
|
||||
.read(selectedRequestModelProvider)
|
||||
?.httpRequestModel
|
||||
?.isParamEnabledList ??
|
||||
List.filled(rP?.length ?? 0, true, growable: true))
|
||||
];
|
||||
isRowEnabledList.add(false);
|
||||
isAddingRow = false;
|
||||
|
||||
|
Reference in New Issue
Block a user