Browse Source

fix(nc-gui): getColumn(filter) can be null at the beginning

pull/5106/head
Wing-Kam Wong 2 years ago
parent
commit
ea63a0c6a8
  1. 2
      packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue

2
packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue

@ -236,7 +236,7 @@ defineExpose({
dropdown-class-name="nc-dropdown-filter-comp-op"
@change="filterUpdateCondition(filter, i)"
>
<template v-for="compOp of comparisonOpList(getColumn(filter).uidt)" :key="compOp.value">
<template v-for="compOp of comparisonOpList(getColumn(filter)?.uidt)" :key="compOp.value">
<a-select-option v-if="isComparisonOpAllowed(filter, compOp)" :value="compOp.value">
{{ compOp.text }}
</a-select-option>

Loading…
Cancel
Save