refactor: modify presentation ID handling in useLayoutSaving hook
This commit is contained in:
parent
69cfddc2bf
commit
36bb437f6b
2 changed files with 2 additions and 3 deletions
|
|
@ -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] \
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue