Fix add bot error handling (#22649)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3f6452bdf5
Коммит
f97a11680b
@@ -249,6 +249,7 @@ export default class AddBot extends React.PureComponent<Props, State> {
|
|||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
return;
|
||||||
} else if (this.state.pictureFile.size > this.props.maxFileSize) {
|
} else if (this.state.pictureFile.size > this.props.maxFileSize) {
|
||||||
this.setState({
|
this.setState({
|
||||||
error: (
|
error: (
|
||||||
@@ -258,6 +259,7 @@ export default class AddBot extends React.PureComponent<Props, State> {
|
|||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user