Skip to content

Commit c2870eb

Browse files
committed
Fix problem introduced in merge
1 parent a3d8680 commit c2870eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/reactComponents/Menu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export function Component(props: MenuProps): React.JSX.Element {
294294
}
295295

296296
try {
297-
const blobUrl = await createPythonFiles.producePythonProjectBlob(props.project, props.storage);
297+
const blobUrl = await createPythonFiles.producePythonProjectBlob(props.currentProject, props.storage);
298298

299299
// Check if the backend server is available
300300
const serverAvailable = await serverSideStorage.isServerAvailable();
@@ -306,7 +306,7 @@ export function Component(props: MenuProps): React.JSX.Element {
306306
const blob = await response.blob();
307307

308308
const formData = new FormData();
309-
formData.append('file', blob, `${props.project.projectName}.zip`);
309+
formData.append('file', blob, `${props.currentProject.projectName}.zip`);
310310

311311
const deployResponse = await fetch('/deploy', {
312312
method: 'POST',
@@ -326,7 +326,7 @@ export function Component(props: MenuProps): React.JSX.Element {
326326
// Download the file locally
327327
const link = document.createElement('a');
328328
link.href = blobUrl;
329-
link.download = `${props.project.projectName}.zip`;
329+
link.download = `${props.currentProject.projectName}.zip`;
330330
document.body.appendChild(link);
331331
link.click();
332332
document.body.removeChild(link);

0 commit comments

Comments
 (0)