[Fix] Block editor labels showing Angular JS on first load. (#14143)
Co-authored-by: Dhanesh Kumar <“dhanesh.kumar@phases.io”>
(cherry picked from commit 58695b6e9f)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
a29d63475c
commit
7d3c22b28a
@@ -639,10 +639,9 @@
|
||||
mapToPropertyModel(this.settings, this.settingsData);
|
||||
}
|
||||
};
|
||||
|
||||
// first time instant update of label.
|
||||
blockObject.label = (blockObject.config.label || blockObject.content?.contentTypeName) ?? "" ;
|
||||
blockObject.index = 0;
|
||||
blockObject.label = blockObject.content?.contentTypeName || "";
|
||||
blockObject.index = 0;
|
||||
|
||||
if (blockObject.config.label && blockObject.config.label !== "" && blockObject.config.unsupported !== true) {
|
||||
var labelElement = $('<div></div>', { text: blockObject.config.label});
|
||||
|
||||
Reference in New Issue
Block a user