Skip to content

Commit

Permalink
Fix regression #620 (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy authored Jul 20, 2020
1 parent d7547a8 commit 52b6628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repositories/SettingRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function saveAll($settingsFields, $section = null)
}
} else {
$medias = [
$role => Collection::make($settingsFields['medias'][$role])->mapWithKeys(function ($media, $key) {
$role => Collection::make($settingsFields['medias'][$role])->map(function ($media) {
return json_decode($media, true);
})->values()->filter()->toArray(),
];
Expand Down

0 comments on commit 52b6628

Please sign in to comment.