1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-01 23:38:37 +00:00

01 filter column not show column keys (#6618)

This commit is contained in:
Michael An 2024-08-22 17:57:49 +08:00 committed by GitHub
parent 98872bdb71
commit 1dfbd8c244
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@ import React, { Component } from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
import {
VIEW_NOT_DISPLAY_COLUMN_KEYS,
FILTER_COLUMN_OPTIONS,
ValidateFilter,
getColumnByKey,
@ -65,7 +66,8 @@ class FiltersList extends Component {
getFilterColumns = () => {
const { columns } = this.props;
return columns.filter(column => {
let { type } = column;
let { type, key } = column;
if (VIEW_NOT_DISPLAY_COLUMN_KEYS.includes(key)) return false;
return Object.prototype.hasOwnProperty.call(FILTER_COLUMN_OPTIONS, type);
});
};