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:
Erik Jan de Wit 2024-04-24 11:40:29 +02:00 committed by GitHub
parent 82893df3b5
commit f6a393252a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {