Zapier 静态下拉列表显示有关加载更多选项的消息

Zapier static dropdown displays message regarding loading more options

我有 Zapier 搜索操作的代码:

      {
        key: 'field0',
        label: 'Field 0',
        required: true,
        choices: { field1: 'Field1', field2: 'Field2' },
        altersDynamicFields: true,
      },
      function (z, bundle) {
        if (bundle.inputData['field0'] === 'field1') {
          return [{ 
            key: 'field1',  
            type: 'string', 
            required: true, 
            label: 'Field1' 
          }];
        }
        if (bundle.inputData['field0'] === 'field2') {
          return [{ 
            key: 'field2', 
            type: 'string', 
            required: true,
            label: 'Field2' 
          }];
        }
        return [];
      },
    ]

它按预期工作 - 根据用户选择呈现字段,但是在下拉选项上方我看到这条消息:

We couldn't find any more choices.
Sorry, there are no more choices. We've loaded all 2.

如何删除此消息?

尝试用例切换控件 instead.It看起来更干净,不会给出任何警告错误。

field = bundle.inputData.field0
 switch (field) {
          case "field1":
              return [{ 
            key: 'field1',  
            type: 'string', 
            required: true, 
            label: 'Field1' 
          }];
            case "field2":
              return [{ 
            key: 'field2',  
            type: 'string', 
            required: true, 
            label: 'Field2' 
          }];
              default:
            return [];
        }