prevent calling setGpu when the image selection is empty

This commit is contained in:
Gautam krishna R 2025-02-18 06:28:19 +00:00 committed by GitHub
parent 8622084a02
commit cb06a2c3eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,7 +111,7 @@ io.on('connection', async function (socket) {
}
// GPU yaml merge
if (installSettings.forceGpu !== 'disabled') {
if (installSettings.forceGpu !== 'disabled' && imagesI.images) {
imagesI = await setGpu(imagesI);
}
@ -151,7 +151,7 @@ io.on('connection', async function (socket) {
}
// GPU yaml merge
if (upgradeSettings.forceGpu !== 'disabled') {
if (upgradeSettings.forceGpu !== 'disabled' && imagesI.images) {
imagesI = await setGpu(imagesI);
}