0
Fork 0
mirror of https://github.com/penpot/penpot-export.git synced 2025-01-22 14:38:57 -05:00

fix(cli): correctly validate undefined instance

This commit is contained in:
Roberto Redradix 2023-09-01 11:37:33 +02:00 committed by Roberto RedRadix
parent f53464baad
commit 30494680a6

View file

@ -130,7 +130,7 @@ export function validateUserConfig(
)
throw new AccessTokenConfigError()
if ('instance' in userConfig) {
if ('instance' in userConfig && userConfig.instance !== undefined) {
if (typeof userConfig.instance !== 'string')
throw new InvalidInstanceUrlConfigError()