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 @@ -55,6 +55,7 @@ const LIMIT_OPTIONS: { key: number; label: string }[] = [
{ key: 100, label: '100' },
{ key: 1000, label: '1,000' },
{ key: 5000, label: '5,000' },
{ key: 50000, label: '50,000' },
{ key: 0, label: 'Default limit' },
];
const LIMIT_OPTION_VALUES = LIMIT_OPTIONS.map((option) => option.key) as number[];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Cube, TCubeDimension, TCubeMeasure, TCubeSegment } from '@cubejs-client/core';
import { Cube } from '@cubejs-client/core';
import { ReactElement, useEffect, useMemo, useRef, useState } from 'react';
import { Block, Button, Space, tasty, Text, CubeIcon, ViewIcon } from '@cube-dev/ui-kit';

Expand Down Expand Up @@ -589,8 +589,8 @@ export function SidePanelCubeItem(props: CubeListItemProps) {
...hierarchyNames.filter((hierarchy) => folder.members.includes(hierarchy)),
...dimensions.filter((dimension) => folder.members.includes(dimension)),
].sort(sortFn),
...measures.filter((measure) => folder.members.includes(measure)),
...segments.filter((segment) => folder.members.includes(segment))
...measures.filter((measure) => folder.members.includes(measure)).sort(sortFn),
...segments.filter((segment) => folder.members.includes(segment)).sort(sortFn)
);

return acc;
Expand All @@ -606,8 +606,8 @@ export function SidePanelCubeItem(props: CubeListItemProps) {
(dimension) => !folderMembers.includes(dimension) && !hierarchyMembers.includes(dimension)
),
].sort(sortFn),
...measures.filter((measure) => !folderMembers.includes(measure)),
...segments.filter((segment) => !folderMembers.includes(segment)),
...measures.filter((measure) => !folderMembers.includes(measure)).sort(sortFn),
...segments.filter((segment) => !folderMembers.includes(segment)).sort(sortFn),
];

// When switching between to and from search mode reset the open instances
Expand Down
Loading