ui: fix metadata prefetch
This commit is contained in:
parent
e405f01149
commit
cc829263b3
1 changed files with 3 additions and 2 deletions
|
|
@ -18,8 +18,9 @@ export default class FilterStore {
|
|||
makeAutoObservable(this);
|
||||
}
|
||||
|
||||
setTopValues = (key: string, values: TopValue[]) => {
|
||||
this.topValues[key] = values?.filter((value) => value !== null && value.value !== '');
|
||||
setTopValues = (key: string, values: Record<string, any> | TopValue[]) => {
|
||||
const vals = Array.isArray(values) ? values : values.data
|
||||
this.topValues[key] = vals?.filter((value) => value !== null && value.value !== '');
|
||||
};
|
||||
|
||||
fetchTopValues = async (key: string, source?: string) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue