Skip to content

Commit

Permalink
Included error logging for fetch request
Browse files Browse the repository at this point in the history
  • Loading branch information
BiancaWentzel authored Oct 18, 2024
1 parent aa402b7 commit fbc2da1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/Containers/FrevaGPT/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class FrevaGPT extends React.Component {
await this.fetchData()
} catch(err) {
this.props.dispatch(addElement({ variant: "FrontendError", content: "An error occured during rendering!" }))
console.error(err);
}
this.setState({ loading: false });
}
Expand Down Expand Up @@ -186,7 +187,7 @@ class FrevaGPT extends React.Component {
foundSomething = true;
break;
} catch(err) {
// don't do anything
console.error(err);
}
}
}
Expand Down

0 comments on commit fbc2da1

Please sign in to comment.