mirror of
https://github.com/umami-software/umami.git
synced 2026-02-24 14:35:35 +01:00
finish clickhouse journeys query
This commit is contained in:
parent
3a6971e173
commit
0333bec986
8 changed files with 151 additions and 42 deletions
|
|
@ -8,14 +8,13 @@ import { useEscapeKey } from 'components/hooks';
|
|||
export default function JourneyView() {
|
||||
const [selected, setSelected] = useState(null);
|
||||
const { report } = useContext(ReportContext);
|
||||
const { data } = report || {};
|
||||
const { data, parameters } = report || {};
|
||||
useEscapeKey(() => setSelected(null));
|
||||
|
||||
const columns = useMemo(() => {
|
||||
if (!data) {
|
||||
return [];
|
||||
}
|
||||
return Array(data[0].items.length)
|
||||
return Array(Number(parameters.steps))
|
||||
.fill(undefined)
|
||||
.map((col = {}, index) => {
|
||||
data.forEach(({ items, count }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue