Skip to content

Commit

Permalink
fix null map for needed keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Dec 29, 2023
1 parent 35789af commit f89690c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resolvers/taskResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ module.exports = {
});
},
map(data, args, context) {
return context.data.map.get(context, data.map_id);
if (data.map_id) return context.data.map.get(context, data.map_id);
return null;
}
},
TaskObjective: {
Expand Down

0 comments on commit f89690c

Please sign in to comment.