mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-13 01:01:28 +08:00
fix: added default fallback for selectedColumns, when the attributeKeys call gives empty (#5847)
This commit is contained in:
parent
b9ab6d3fd4
commit
4214e36d22
@ -140,6 +140,11 @@ const useOptionsMenu = ({
|
||||
return col;
|
||||
})
|
||||
.filter(Boolean) as BaseAutocompleteData[];
|
||||
|
||||
// this is the last point where we can set the default columns and if uptil now also we have an empty array then we will set the default columns
|
||||
if (!initialSelected || !initialSelected?.length) {
|
||||
initialSelected = defaultTraceSelectedColumns;
|
||||
}
|
||||
}
|
||||
|
||||
return initialSelected || [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user