TF-4178 Implement create new label

This commit is contained in:
dab246
2025-12-09 14:34:06 +07:00
committed by Dat H. Pham
parent 38c47ca373
commit 6c959fcf81
12 changed files with 163 additions and 39 deletions
@@ -79,9 +79,13 @@ mixin HandleSetErrorMixin {
}
parseErrorForSetResponse(SetResponse? response, Id requestId) {
final mapError =
response?.notCreated ?? response?.notUpdated ?? response?.notDestroyed;
if (mapError != null && mapError.containsKey(requestId)) {
final mapError = <Id, SetError>{
...?response?.notCreated,
...?response?.notUpdated,
...?response?.notDestroyed,
};
if (mapError.containsKey(requestId)) {
final setError = mapError[requestId];
log('HandleSetErrorMixin::parseErrorForSetResponse():setError: $setError');
if (setError?.type == ErrorMethodResponse.invalidArguments) {