refactor: modify presentation ID handling in useLayoutSaving hook

This commit is contained in:
shiva raj badu 2025-08-29 12:35:14 +05:45
parent 69cfddc2bf
commit 36bb437f6b
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -27,7 +27,7 @@ ENV TEMP_DIRECTORY=/tmp/presenton
# ENV PYTHONPATH="${PYTHONPATH}:/app/servers/fastapi"
# Install ollama
RUN curl -fsSL http://ollama.com/install.sh | sh
# RUN curl -fsSL http://ollama.com/install.sh | sh
# Install dependencies for FastAPI
RUN pip install aiohttp aiomysql aiosqlite asyncpg fastapi[standard] \

View file

@ -52,7 +52,7 @@ export const useLayoutSaving = (
);
return {
presentation_id: presentationId,
presentation: presentationId,
layout_id: `${slide.slide_number}`,
layout_name: `Slide${slide.slide_number}`,
layout_code: data.react_component || data.component_code,
@ -144,7 +144,6 @@ export const useLayoutSaving = (
body: JSON.stringify({ id: presentationId, name: layoutName, description }),
});
// Save the layout components to the app_data/layouts folder
const saveResponse = await fetch(
"/api/v1/ppt/template-management/save-templates",
{