Skip to content

Commit c14bba2

Browse files
committed
Dont return anything if empy string is passed
1 parent 974a522 commit c14bba2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/NovaEditorJs.php

+4
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ public function resolveForDisplay($resource, $attribute = null)
6363
*/
6464
public static function generateHtmlOutput($jsonData): string
6565
{
66+
if (empty($jsonData)) {
67+
return '';
68+
}
69+
6670
$config = config('nova-editor-js.validationSettings');
6771

6872
try {

0 commit comments

Comments
 (0)