mirror of
https://github.com/liufree/obsidian-querydash.git
synced 2026-07-22 12:20:26 +00:00
feat: support bases
This commit is contained in:
parent
67448cf923
commit
6643cec1a5
1 changed files with 1 additions and 4 deletions
|
|
@ -96,9 +96,6 @@ const
|
|||
TableView: React.FC<ViewProps> = ({app, source, columnsHead, data}) => {
|
||||
|
||||
const [columns, setColumns] = React.useState<ProColumns<any>[]>([]);
|
||||
const dv = getAPI(app);
|
||||
|
||||
|
||||
function parseTableResult(rows: any, params: any): Array<Record<string, any>> {
|
||||
delete params.current;
|
||||
delete params.pageSize;
|
||||
|
|
@ -107,7 +104,7 @@ const
|
|||
return Object.keys(params).every(key => {
|
||||
if (params[key]) {
|
||||
if (item[key]) {
|
||||
return item[key].toString().toLowerCase().includes(params[key].toString().toLowerCase());
|
||||
return item[key]?.display?.toString().toLowerCase().includes(params[key].toString().toLowerCase());
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue