Put the changed code on one line to avoid jshint error

This commit is contained in:
Kazuhito Yokoi 2023-12-29 20:32:14 +09:00
parent 74ff0599d1
commit 8365310ca7

View File

@ -484,8 +484,7 @@ RED.palette = (function() {
var currentLabel = paletteNode.attr("data-palette-label");
var currentInfo = paletteNode.attr("data-palette-info");
if (currentLabel !== sf.name || currentInfo !== sf.info
|| sf.in.length > 0 || sf.out.length > 0) {
if (currentLabel !== sf.name || currentInfo !== sf.info || sf.in.length > 0 || sf.out.length > 0) {
paletteNode.attr("data-palette-info",sf.info);
setLabel(sf.type+":"+sf.id,paletteNode,sf.name,RED.utils.renderMarkdown(sf.info||""));
}