New Google Sheets custom functions sometimes display “Loading…” indefinitely

后端 未结 13 1649
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 06:34

SPECIFIC FOR: \"NEW\" google sheets only.

This is a known issue as highlighted by google in the new sheets.

Issues: If you write complex* custom f

相关标签:
13条回答
  • 2020-12-24 07:19

    I also had the infinite loading issue with the following function.

    // check if an item can be checked off
    function checkedOff( need, have ) {
      var retStr = "nope";
      if( have >= need ){
        retStr = "yep";
      }
      return retStr;
    };
    

    Turns out you shouldn't have a trailing ";". Removing the semicolon solved the problem.

    // check if an item can be checked off
    function checkedOff( need, have ) {
      var retStr = "nope";
      if( have >= need ){
        retStr = "yep";
      }
      return retStr;
    }
    

    This runs as one would expect.

    0 讨论(0)
提交回复
热议问题