🎨 database

This commit is contained in:
Vanessa 2024-03-08 16:00:01 +08:00
parent a329d073ab
commit 2775a9271f

View file

@ -560,7 +560,7 @@ export const getFiltersHTML = (data: IAVTable) => {
data.columns.find((item) => {
if (item.id === filter.column && item.type === filter.value.type) {
let filterText = "";
const filterValue = item.type === "rollup" ? (filter.value.rollup?.contents ? filter.value.rollup.contents[0] : {type: "rollup"} as IAVCellValue) : filter.value;
const filterValue = item.type === "rollup" ? (filter.value.rollup?.contents?.length > 0 ? filter.value.rollup.contents[0] : {type: "rollup"} as IAVCellValue) : filter.value;
if (filter.operator === "Is empty") {
filterText = ": " + window.siyuan.languages.filterOperatorIsEmpty;
} else if (filter.operator === "Is not empty") {