diff --git a/gui/src/components/mainInput/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor.tsx
index bcd7328a2c..0312b3f539 100644
--- a/gui/src/components/mainInput/TipTapEditor.tsx
+++ b/gui/src/components/mainInput/TipTapEditor.tsx
@@ -175,6 +175,8 @@ interface TipTapEditorProps {
historyKey: string;
}
+export const TIPPY_DIV_ID = "tippy-js-div";
+
function TipTapEditor(props: TipTapEditorProps) {
const dispatch = useAppDispatch();
@@ -976,22 +978,17 @@ function TipTapEditor(props: TipTapEditorProps) {
{showDragOverMsg &&
modelSupportsImages(
- defaultModel.provider,
- defaultModel.model,
- defaultModel.title,
- defaultModel.capabilities,
+ defaultModel?.provider || "",
+ defaultModel?.model || "",
+ defaultModel?.title,
+ defaultModel?.capabilities,
) && (
<>