浏览代码

Fixed an falsey if statement

Dustin Utecht 3 年之前
父节点
当前提交
ea1b85ae83
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/extensions/filter-control/utils.js

+ 1 - 1
src/extensions/filter-control/utils.js

@@ -307,7 +307,7 @@ export function initFilterSelectControls (that) {
         const formatter = that.options.editable && column.editable ? column._formatter : that.header.formatters[j]
         let formattedValue = Utils.calculateObjectValue(that.header, formatter, [fieldValue, data[i], i], fieldValue)
 
-        if (!fieldValue) {
+        if (fieldValue === undefined || fieldValue === null) {
           fieldValue = formattedValue
           column._forceFormatter = true
         }