mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 18:26:20 +01:00
default column/filters
This commit is contained in:
parent
ba31f48f1a
commit
a320d65652
@ -77,8 +77,8 @@ export const dateOptions = [
|
||||
export default function EventDataForm({ websiteId, onClose, className }) {
|
||||
const { post } = useApi();
|
||||
const [message, setMessage] = useState();
|
||||
const [columns, setColumns] = useState();
|
||||
const [filters, setFilters] = useState();
|
||||
const [columns, setColumns] = useState({});
|
||||
const [filters, setFilters] = useState({});
|
||||
const [data, setData] = useState([]);
|
||||
const [dateRange, setDateRange] = useDateRange('report');
|
||||
const { startDate, endDate, value } = dateRange;
|
||||
@ -99,11 +99,11 @@ export default function EventDataForm({ websiteId, onClose, className }) {
|
||||
};
|
||||
|
||||
const handleRemoveTag = (value, list, setState) => {
|
||||
const next = { ...list };
|
||||
const newList = { ...list };
|
||||
|
||||
delete next[`${value}`];
|
||||
delete newList[`${value}`];
|
||||
|
||||
setState(next);
|
||||
setState(newList);
|
||||
};
|
||||
|
||||
const handleSubmit = async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user