mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
Disable website select for saved report. Fix delete website routing
This commit is contained in:
parent
91e3dff7f5
commit
5ae04291af
6 changed files with 31 additions and 22 deletions
|
|
@ -29,7 +29,7 @@ function useFields(websiteId, startDate, endDate) {
|
|||
export function EventDataParameters() {
|
||||
const { report, runReport, updateReport, isRunning } = useContext(ReportContext);
|
||||
const { formatMessage, labels, messages } = useMessages();
|
||||
const { parameters } = report || {};
|
||||
const { id, parameters } = report || {};
|
||||
const { websiteId, dateRange, fields, filters, groups } = parameters || {};
|
||||
const { startDate, endDate } = dateRange || {};
|
||||
const queryEnabled = websiteId && dateRange && fields?.length;
|
||||
|
|
@ -93,7 +93,7 @@ export function EventDataParameters() {
|
|||
|
||||
return (
|
||||
<Form values={parameters} error={error} onSubmit={handleSubmit}>
|
||||
<BaseParameters />
|
||||
<BaseParameters allowWebsiteSelect={!id} />
|
||||
{!hasData && <Empty message={formatMessage(messages.noEventData)} />}
|
||||
{parametersSelected &&
|
||||
hasData &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue