Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Queries = () => {
const compareQueryInfo = COMPARATORS[sort.active] || COMPARATORS[QUERIES_SORT_KEYS.totalTime];
const spans = allSpans;
const onlyDBSpans = spans.filter((span: Span) => DB_SPAN_REGEX.test(span.op || ""));
const uniqueSpansSet = new Set(onlyDBSpans.map(span => String(span?.description).trim()));
const uniqueSpansSet = new Set(onlyDBSpans.map(span => (span.description ?? "").trim()));
// Clear out empty ones (they collapse as a single empty string since this is a set)
uniqueSpansSet.delete("");
return [...uniqueSpansSet]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const Resources = () => {

const resources = useMemo(() => {
const filteredResourceSpans = getResourceSpans(allSpans, { regex: /resource\.[A-Za-z]+/ });
const uniqueResourceDescriptionsSet = new Set(filteredResourceSpans.map(span => String(span?.description).trim()));
const uniqueResourceDescriptionsSet = new Set(filteredResourceSpans.map(span => (span.description ?? "").trim()));
// Clear out empty ones (they collapse as a single empty string since this is a set)
uniqueResourceDescriptionsSet.delete("");
const uniqueResourceDescriptions: string[] = [...uniqueResourceDescriptionsSet];
Expand Down
Loading