filters =searchQuery || status || priority ? [
[“task_name”, “like”, %${searchQuery}%],
[“status”, “like”, %${status}%],
[“priority”, “like”, %${priority}%]
] :
const { data: totalRecords } = useFrappeGetDocCount(‘CG TaskDefinition’, {
filters: filters
});
it is not working, Someone can tell me what was the wrong here.