diff --git a/src/frontend/src/constants/constants.ts b/src/frontend/src/constants/constants.ts index a2c23f3f4..1c1ad8d82 100644 --- a/src/frontend/src/constants/constants.ts +++ b/src/frontend/src/constants/constants.ts @@ -858,3 +858,5 @@ export const ERROR_UPDATING_COMPONENT = "An unexpected error occurred while updating the Component. Please try again."; export const TITLE_ERROR_UPDATING_COMPONENT = "Error while updating the Component"; + + export const EMPTY_INPUT_SEND_MESSAGE = "No input message provided."; diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatMessage/index.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatMessage/index.tsx index 020eff65d..5485cc69f 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/chatMessage/index.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/chatMessage/index.tsx @@ -14,6 +14,7 @@ import useFlowStore from "../../../../../stores/flowStore"; import { chatMessagePropsType } from "../../../../../types/components"; import { classNames, cn } from "../../../../../utils/utils"; import FileCardWrapper from "./components/fileCardWrapper"; +import { EMPTY_INPUT_SEND_MESSAGE } from "../../../../../constants/constants"; export default function ChatMessage({ chat, @@ -310,7 +311,9 @@ export default function ChatMessage({ ) : (