diff --git a/src/renderer/components/input/input.validators.ts b/src/renderer/components/input/input.validators.ts index 799a610824..4e18468da9 100644 --- a/src/renderer/components/input/input.validators.ts +++ b/src/renderer/components/input/input.validators.ts @@ -45,7 +45,7 @@ export const isUrl: Validator = { export const isPath: Validator = { condition: ({ type }) => type === "text", message: () => _i18n._(t`This field must be a path to an existing file`), - validate: value => fse.pathExistsSync(value), + validate: value => !value || fse.pathExistsSync(value), } export const minLength: Validator = {