🚸 Stats: Only show active products

This commit is contained in:
Nikolai R Kristiansen committed 2022-02-06 22:11:14 +01:00
1 parent df3aff7fb2
commit 9c7fe11bfc
1 file changed
+3 -1
+3 -1
View File
@@ -28,7 +28,9 @@ const months = {
12: "Desember",
};
export const Stats = () => {
const { data: productData, loading: productLoading } = useQuery(ProductStatsDocument);
const { data: productData, loading: productLoading } = useQuery(ProductStatsDocument, {
variables: { active: true },
});
const { data: orderData, loading: orderLoading } = useQuery(OrderStatsDocument);
const loading = orderLoading || productLoading;