diff --git a/src/functions/helperFunctions.js b/src/functions/helperFunctions.js index 4795ba0487cd81cb77ad84d8ecb64bac6ab4f0ae..977181ce0ef09f0cb152e9e101baf8e2be298fc5 100644 --- a/src/functions/helperFunctions.js +++ b/src/functions/helperFunctions.js @@ -159,7 +159,7 @@ const deployArchitecture = async () => { const stopArchitecture = async () => { const customCodes = await getCustomCodes(); for (const customCode of customCodes) { - if (!customCode.isPaused) { + if (!customCode.isPaused && customCode.isDeployed) { await pauseDockerContainer(customCode.id); await setIsPaused(customCode.id); }