use default also when it doesn't contain a "##" (#29308)
fixes: #29263 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
2dcd05134e
commit
02cece07e5
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("##") : [value || ""];
|
||||
}
|
||||
|
||||
function toStringValue(formValue: string[]): string {
|
||||
|
|
Loading…
Reference in a new issue