Fix use default button for node icon

This commit is contained in:
Kazuhito Yokoi 2022-06-27 23:56:24 +09:00
parent dd0d1e700e
commit ab1e38dde8
1 changed files with 1 additions and 2 deletions

View File

@ -37,8 +37,7 @@
if (!node._def.defaults || !node._def.defaults.hasOwnProperty("icon")) {
var icon = $("#red-ui-editor-node-icon").val()||"";
if (!this.isDefaultIcon) {
if ((icon !== node.icon) &&
(icon !== "")) {
if ((node.icon && icon !== node.icon) || (!node.icon && icon !== "")) {
editState.changes.icon = node.icon;
node.icon = icon;
editState.changed = true;