fix(xo-web): do not throw an error when editing a non encrypted remote

Introduced by dca3f39
This commit is contained in:
Florent Beauchamp 2022-09-30 16:51:39 +02:00 committed by Julien Fontanet
parent feaad13ac3
commit 5e589019d0

View File

@ -101,7 +101,7 @@ export default decorate([
region,
allowUnauthorized,
useVhdDirectory,
encryptionKey: encryptionKey.trim() !== '' ? encryptionKey : undefined,
encryptionKey: encryptionKey?.trim() !== '' ? encryptionKey : undefined,
}),
options: options !== '' ? options : null,
proxy: proxyId,