[DEV-224] Error in edit topic icon color (#1143)

This commit is contained in:
Joel Elias Méndez 2022-02-08 14:01:43 -03:00 committed by GitHub
parent a264d384a1
commit 9cf71dcf66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,13 +124,15 @@ class TopicViewer extends React.Component {
}
renderEditModal() {
let props = {
topicId: this.props.id,
onChange: this.props.onChange,
const {id, onChange, name, icon, iconColor} = this.props;
const props = {
topicId: id,
onChange,
defaultValues: {
title: this.props.name,
icon: this.props.icon,
iconColor: this.props.iconColor,
title: name,
icon,
color: iconColor,
private: this.props.private * 1
}
};