@donglegeyu/company-ui 1.2.21 → 1.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -148,7 +148,9 @@ function SmartListTemplate({
|
|
|
148
148
|
(0, import_react.useEffect)(() => {
|
|
149
149
|
if (!fields || fields.length === 0)
|
|
150
150
|
return;
|
|
151
|
-
const updatedOptions = fields.filter(
|
|
151
|
+
const updatedOptions = fields.filter(
|
|
152
|
+
(field) => !nonBusinessFields.includes(field.key) && !field.hideInFilter
|
|
153
|
+
).map((field) => {
|
|
152
154
|
var _a;
|
|
153
155
|
return {
|
|
154
156
|
key: field.key,
|
|
@@ -214,7 +214,7 @@ export default function SmartListTemplate(_ref) {
|
|
|
214
214
|
useEffect(function () {
|
|
215
215
|
if (!fields || fields.length === 0) return;
|
|
216
216
|
var updatedOptions = fields.filter(function (field) {
|
|
217
|
-
return !nonBusinessFields.includes(field.key);
|
|
217
|
+
return !nonBusinessFields.includes(field.key) && !field.hideInFilter;
|
|
218
218
|
}).map(function (field) {
|
|
219
219
|
var _field$options;
|
|
220
220
|
return {
|
package/dist/es/types/index.d.ts
CHANGED