fix default value when stringyfy is on (#29042)
fixes: #28979 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
82893df3b5
commit
f6a393252a
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ import { useFormContext, useWatch } from "react-hook-form";
|
|||
import { useTranslation } from "react-i18next";
|
||||
|
||||
function stringToMultiline(value?: string): string[] {
|
||||
return typeof value === "string" ? value.split("##") : [];
|
||||
return typeof value === "string" ? value.split("##") : [""];
|
||||
}
|
||||
|
||||
function toStringValue(formValue: string[]): string {
|
||||
|
|
Loading…
Reference in a new issue