From f12e673af550c1cc4bf091be456ea98cfea3f715 Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Sun, 19 Apr 2026 18:23:36 +0200 Subject: [PATCH] refactor(DatabsTab): remove unnecessary product fetching and pass empty props to components --- frontend/app/profil/tabs/DatabsTab.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/app/profil/tabs/DatabsTab.tsx b/frontend/app/profil/tabs/DatabsTab.tsx index 8b42726d..3ce51179 100644 --- a/frontend/app/profil/tabs/DatabsTab.tsx +++ b/frontend/app/profil/tabs/DatabsTab.tsx @@ -1,13 +1,9 @@ -import { fetchJson } from '../../../lib/api'; -import type { Product } from '../../../features/inventory/types'; import MergePreviewForm from '../../admin/products/MergePreviewForm'; import AdminProductList from '../../admin/products/AdminProductList'; import ExpandableCreateProductSection from '../../admin/products/ExpandableCreateProductSection'; import ResetProductsButton from '../../admin/products/ResetProductsButton'; export default async function DatabsTab() { - const products = await fetchJson('/api/products'); - return (

@@ -15,8 +11,8 @@ export default async function DatabsTab() {

- - + +
); }