Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fix insight.

Brian Cao75861bda6183
diff --git a/src/pages/api/reports/insights.ts b/src/pages/api/reports/insights.ts
index d10eba3fb..4d17c9220 100644
--- a/src/pages/api/reports/insights.ts
+++ b/src/pages/api/reports/insights.ts
@@ -38,18 +38,14 @@ const schema = {
)
.min(1)
.required(),
- filters: yup
- .array()
- .of(
- yup.object().shape({
- name: yup.string().required(),
- type: yup.string().required(),
- filter: yup.string().required(),
- value: yup.string().required(),
- }),
- )
- .min(1)
- .required(),
+ filters: yup.array().of(
+ yup.object().shape({
+ name: yup.string().required(),
+ type: yup.string().required(),
+ filter: yup.string().required(),
+ value: yup.string().required(),
+ }),
+ ),
groups: yup.array().of(
yup.object().shape({
name: yup.string().required(),