Skip to content

Commit

Permalink
Guard against undefined info when passing info to onCreatePathList ca…
Browse files Browse the repository at this point in the history
…llback
  • Loading branch information
ianmcorvidae committed Apr 9, 2024
1 parent 41a9cf2 commit f040498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/data/PathListAutomation.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function PathListAutomation(props) {
{
onSuccess: (data) => {
setCreatePathListError(null);
onCreatePathList(data.file.id, data.file.path);
onCreatePathList(data?.file?.id, data?.file?.path);
},
onError: (error, { onError }) => {
let errMsg = null;
Expand Down

0 comments on commit f040498

Please sign in to comment.