mirror of
https://github.com/kasmtech/kasm-install-wizard.git
synced 2026-01-23 02:34:27 +00:00
prevent calling setGpu when the image selection is empty
This commit is contained in:
parent
8622084a02
commit
cb06a2c3eb
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue