mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Insights report updates.
This commit is contained in:
parent
ccafb03c47
commit
2e1e5e2616
8 changed files with 101 additions and 88 deletions
|
|
@ -5,7 +5,7 @@ import { ReportContext } from 'components/pages/reports/Report';
|
|||
import Empty from 'components/common/Empty';
|
||||
import { DATA_TYPES, REPORT_PARAMETERS } from 'lib/constants';
|
||||
import Icons from 'components/icons';
|
||||
import FieldAddForm from './FieldAddForm';
|
||||
import FieldAddForm from '../FieldAddForm';
|
||||
import BaseParameters from '../BaseParameters';
|
||||
import ParameterList from '../ParameterList';
|
||||
import styles from './EventDataParameters.module.css';
|
||||
|
|
@ -54,9 +54,11 @@ export function EventDataParameters() {
|
|||
};
|
||||
|
||||
const handleAdd = (group, value) => {
|
||||
const data = parameterData[group].filter(({ name }) => name !== value.name);
|
||||
const data = parameterData[group];
|
||||
|
||||
updateReport({ parameters: { [group]: data.concat(value) } });
|
||||
if (!data.find(({ name }) => name === value.name)) {
|
||||
updateReport({ parameters: { [group]: data.concat(value) } });
|
||||
}
|
||||
};
|
||||
|
||||
const handleRemove = (group, index) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue