From 87d0bbf749d4c23c3746d8e9ec9ef146bfcb1dcf Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 28 Jan 2025 02:02:05 -0500 Subject: [PATCH] add logging --- app/pages/PageEnigma/comps/Timeline/CharacterFrameButtons.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/pages/PageEnigma/comps/Timeline/CharacterFrameButtons.tsx b/app/pages/PageEnigma/comps/Timeline/CharacterFrameButtons.tsx index 6e5ffda2f1..9bf6c773f4 100644 --- a/app/pages/PageEnigma/comps/Timeline/CharacterFrameButtons.tsx +++ b/app/pages/PageEnigma/comps/Timeline/CharacterFrameButtons.tsx @@ -63,12 +63,14 @@ export default function CharacterFrameButton( const handleFrameSet = useCallback((token?: string) => { if (!token) { + console.error("No image media file token to set as first frame"); return; } // TODO(brandon,2024-01-27): Please forgive me for this ugly hack. It's just // temporary to move to integration testing quickly. Setting the media token // to a global space so we can read from it when calling the inference API. + console.log(`Setting image media file token as first frame token: ${token}`); (window as any).firstFrameMediaToken = token; // TODO: Fetch the image and pass the token to the character engine