mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:15:11 +00:00
fix(data-vi): custom filter conditions are not applied (#4671)
* fix(data-vi): custom filter conditions are not applied * fix: default value
This commit is contained in:
parent
d2b2ac69e6
commit
de0fb26609
@ -417,7 +417,7 @@ export const useChartFilter = () => {
|
||||
if (!(typeof value === 'string' && value.startsWith('{{$') && value?.endsWith('}}'))) {
|
||||
return value;
|
||||
}
|
||||
if (['$user', '$date', '$nDate', '$nRole'].some((n) => value.includes(n))) {
|
||||
if (['$user', '$date', '$nDate', '$nRole', '$nFilter'].some((n) => value.includes(n))) {
|
||||
return value;
|
||||
}
|
||||
const result = variables?.parseVariable(value);
|
||||
|
@ -36,7 +36,7 @@ export const useGeneralVariableOptions = (
|
||||
[datetimeSettings, currentUserSettings, currentRoleSettings, urlSearchParamsSettings],
|
||||
);
|
||||
|
||||
if (!operator || !schema) return [];
|
||||
if (!schema) return [];
|
||||
|
||||
return result;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user