update block label not assigning fixes: #13833 (#13937)

Co-authored-by: Sean Thorne <sean.thorne@truedigital.co.uk>
Co-authored-by: georgebid <91198628+georgebid@users.noreply.github.com>
(cherry picked from commit 64bd310037)
This commit is contained in:
Sean Thorne
2023-03-09 15:34:38 +00:00
committed by Sebastiaan Janssen
parent 8a3cf2731e
commit e6c0826d39

View File

@@ -641,7 +641,7 @@
};
// first time instant update of label.
blockObject.label = blockObject.content?.contentTypeName || "";
blockObject.label = (blockObject.config.label || blockObject.content?.contentTypeName) ?? "" ;
blockObject.index = 0;
if (blockObject.config.label && blockObject.config.label !== "" && blockObject.config.unsupported !== true) {