mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-26 02:24:44 +03:00
fixed infinite profile update bug
This commit is contained in:
parent
e5deed73f8
commit
20fd0dafb0
@ -35,7 +35,8 @@ export default class SceneProfile extends React.Component {
|
||||
};
|
||||
|
||||
componentDidUpdate = async (prevProps) => {
|
||||
if (this.props.data !== prevProps.data) {
|
||||
if (this.props.data?.id && prevProps.data?.id && this.props.data.id !== prevProps.data.id) {
|
||||
console.log("component did update scene profile");
|
||||
await this.fetchProfile();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user