refactor: asset grid

This commit is contained in:
shenlong-tanwen
2024-09-14 22:29:51 +05:30
parent 53974e7276
commit 6fce1ebb79
23 changed files with 796 additions and 113 deletions
+2 -4
View File
@@ -70,10 +70,8 @@ class ImmichApiClient extends ApiClient with LogContext {
static dynamic _patchDto(dynamic value, String targetType) {
switch (targetType) {
case 'UserPreferencesResponseDto':
if (value is Map) {
if (value['rating'] == null) {
value['rating'] = RatingResponse().toJson();
}
if (value is Map && value['rating'] == null) {
value['rating'] = RatingResponse().toJson();
}
}
}