feat(ui): text and heading element default content is empty string

This commit is contained in:
psychedelicious
2025-02-11 17:46:35 +11:00
parent 54747bd521
commit bf8ba1bb37

View File

@@ -164,11 +164,11 @@ const useAddFormElementDnd = (
return buildFormElementDndData(element);
}
if (type === 'heading') {
const element = buildHeading('default heading');
const element = buildHeading('');
return buildFormElementDndData(element);
}
if (type === 'text') {
const element = buildText('default text');
const element = buildText('');
return buildFormElementDndData(element);
}
assert(false);