diff --git a/app/Http/Controllers/BreathingExerciseController.php b/app/Http/Controllers/BreathingExerciseController.php index 7272c41..25de9f3 100644 --- a/app/Http/Controllers/BreathingExerciseController.php +++ b/app/Http/Controllers/BreathingExerciseController.php @@ -92,6 +92,8 @@ public function getTemplates() } else { $template->image_url = null; } + // Old app expects a non-null description string. + $template->description = $template->description ?? ''; return $template; }); @@ -109,6 +111,8 @@ public function getUserTemplates() } else { $template->image_url = null; } + // Old app expects a non-null description string. + $template->description = $template->description ?? ''; return $template; });