Integration input field fix (#1955)

Integration input field fix
This commit is contained in:
Yulia Shanyrova 2023-05-17 13:36:41 +02:00 committed by GitHub
parent e97826df94
commit 2cc3be2ee4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -48,7 +48,7 @@ const IntegrationInputField: React.FC<IntegrationInputFieldProps> = ({
);
function renderInputField() {
return <Input className={cx('input')} value={isInputMasked ? value.replace(/./g, '*') : value} disabled />;
return <Input className={cx('input')} value={isInputMasked ? value?.replace(/./g, '*') : value} disabled />;
}
function onInputReveal() {

View file

@ -60,7 +60,6 @@ const IntegrationForm2 = observer((props: IntegrationFormProps) => {
? alertReceiveChannelStore
.create(data)
.then((response) => {
onHide();
history.push(`${PLUGIN_ROOT}/integrations_2/${response.id}`);
})
.catch(() => {