fix(promoted_attributes): checkbox not displaying initial value properly (closes #8062)

This commit is contained in:
Elian Doran
2026-01-22 08:15:40 +02:00
parent 9dfc1cdc4c
commit d6b6832a1d

View File

@@ -217,6 +217,7 @@ function LabelInput({ inputId, ...props }: CellProps & { inputId: string }) {
id={inputId}
type={LABEL_MAPPINGS[definition.labelType ?? "text"]}
value={valueAttr.value}
checked={definition.labelType === "boolean" ? valueAttr.value === "true" : undefined}
placeholder={t("promoted_attributes.unset-field-placeholder")}
data-attribute-id={valueAttr.attributeId}
data-attribute-type={valueAttr.type}