mirror of
https://github.com/penpot/penpot-export.git
synced 2025-01-22 22:48:42 -05:00
fix(cli): correctly validate undefined instance
This commit is contained in:
parent
f53464baad
commit
30494680a6
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ export function validateUserConfig(
|
||||||
)
|
)
|
||||||
throw new AccessTokenConfigError()
|
throw new AccessTokenConfigError()
|
||||||
|
|
||||||
if ('instance' in userConfig) {
|
if ('instance' in userConfig && userConfig.instance !== undefined) {
|
||||||
if (typeof userConfig.instance !== 'string')
|
if (typeof userConfig.instance !== 'string')
|
||||||
throw new InvalidInstanceUrlConfigError()
|
throw new InvalidInstanceUrlConfigError()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue