Skip to content

Commit 19dd517

Browse files
author
Gene Hynson
authored
fix(sub): password field optional during update (#5812)
1 parent bcecf92 commit 19dd517

File tree

1 file changed

+1
-1
lines changed
  • src/writeData/subscriptions/utils

1 file changed

+1
-1
lines changed

src/writeData/subscriptions/utils/form.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const checkNoneSelected = (form: Subscription): boolean =>
243243
const checkBasicSelected = (form: Subscription): boolean =>
244244
form.authType === BrokerAuthTypes.User &&
245245
!!form.brokerUsername &&
246-
!!form.brokerPassword
246+
(!!form.id || !!form.brokerPassword) // only require a password when a subscription is being created, not edited.
247247

248248
const checkCertificateSelected = (form: Subscription): boolean =>
249249
form.authType === BrokerAuthTypes.Certificate &&

0 commit comments

Comments
 (0)