File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments