From cfb4b6e4ce3c6fd172c40a1c19905c77d90fd3ff Mon Sep 17 00:00:00 2001 From: Kelly Date: Tue, 9 Dec 2025 12:08:29 -0700 Subject: [PATCH] fix(cannaiq): Fix TypeScript error in DeployStatus component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Properly destructure api.get response which returns { data: T } 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- cannaiq/dist/index.html | 4 ++-- cannaiq/src/components/DeployStatus.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cannaiq/dist/index.html b/cannaiq/dist/index.html index d4fbb8a4..ab424826 100644 --- a/cannaiq/dist/index.html +++ b/cannaiq/dist/index.html @@ -7,8 +7,8 @@ CannaIQ - Cannabis Menu Intelligence Platform - - + +
diff --git a/cannaiq/src/components/DeployStatus.tsx b/cannaiq/src/components/DeployStatus.tsx index b917e779..1a936f03 100644 --- a/cannaiq/src/components/DeployStatus.tsx +++ b/cannaiq/src/components/DeployStatus.tsx @@ -62,8 +62,8 @@ export function DeployStatus() { const fetchStatus = async () => { try { setLoading(true); - const response = await api.get('/api/admin/deploy-status'); - setData(response); + const { data: responseData } = await api.get('/api/admin/deploy-status'); + setData(responseData); setError(null); } catch (err: any) { setError(err.message || 'Failed to fetch deploy status');