Skip to content

Commit

Permalink
Update TranslationController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
samehdoush committed Jul 20, 2023
1 parent 06085f3 commit bda2db7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Controllers/TranslationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,10 @@ public function updateMultiPhrase(Translation $translation): JsonResponse
]);

foreach (request()->phrases as $phrase) {
if ($phrase['value'] == null)
if (empty($phrase['value'])) {
continue;
}

$phrase = Phrase::where('uuid', $phrase['uuid'])->first();

$phrase->update([
Expand Down

0 comments on commit bda2db7

Please sign in to comment.