mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 09:29:16 +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('}}'))) {
|
if (!(typeof value === 'string' && value.startsWith('{{$') && value?.endsWith('}}'))) {
|
||||||
return value;
|
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;
|
return value;
|
||||||
}
|
}
|
||||||
const result = variables?.parseVariable(value);
|
const result = variables?.parseVariable(value);
|
||||||
|
@ -36,7 +36,7 @@ export const useGeneralVariableOptions = (
|
|||||||
[datetimeSettings, currentUserSettings, currentRoleSettings, urlSearchParamsSettings],
|
[datetimeSettings, currentUserSettings, currentRoleSettings, urlSearchParamsSettings],
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!operator || !schema) return [];
|
if (!schema) return [];
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user