fix: disable images on playground (#7881)

* Changed id of sent file on playground page

* Deactivate enable_image_on_playground feature flags
This commit is contained in:
Lucas Oliveira 2025-05-02 19:00:20 -03:00 committed by GitHub
commit ef8ff1ed9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -12,6 +12,6 @@ export const ENABLE_FILE_MANAGEMENT = true;
export const ENABLE_PUBLISH = true;
export const ENABLE_WIDGET = true;
export const ENABLE_VOICE_ASSISTANT = true;
export const ENABLE_IMAGE_ON_PLAYGROUND = true;
export const ENABLE_IMAGE_ON_PLAYGROUND = false;
export const ENABLE_MCP = true;
export const ENABLE_MCP_NOTICE = true;

View file

@ -38,7 +38,6 @@ export default function ChatView({
playgroundPage,
sidebarOpen,
}: chatViewProps): JSX.Element {
const flowPool = useFlowStore((state) => state.flowPool);
const inputs = useFlowStore((state) => state.inputs);
const clientId = useUtilityStore((state) => state.clientId);
let realFlowId = useFlowsManagerStore((state) => state.currentFlowId);
@ -145,7 +144,7 @@ export default function ChatView({
});
}
const { files, setFiles, handleFiles } = useFileHandler(currentFlowId);
const { files, setFiles, handleFiles } = useFileHandler(realFlowId);
const [isDragging, setIsDragging] = useState(false);
const { dragOver, dragEnter, dragLeave } = useDragAndDrop(