• 0 Votes
    3 Posts
    2k Views

    I'm doing a git commit.

    I have a request if else in the helpers.js

    if (category.bgColor) { style.push ('background-color:' + category.bgColor); } else { console.log ('no bgColor'); }

    that will not do.

    but perhaps a negative query

    if (! category.bgColor || category.bgColor == NULL) { // Console.log ('no bgColor'); style.push ('background-color: #fff'); } else { style.push ('background-color:' + category.bgColor); }

    I tried only the first variant.