Skip to content

Commit

Permalink
Fixed null value being filtered
Browse files Browse the repository at this point in the history
  • Loading branch information
iMidnights committed Mar 15, 2023
1 parent 4d6f0aa commit 5759add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/post/guildSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = {
let d = data.options.find((o) => o.id === option.optionId);
let canUse = {}

if (!d || (!d?.value && typeof d?.value !== 'boolean')) continue;
if (!d && !d?.id) continue;

if (option.allowedCheck) canUse = await option.allowedCheck({
guild: { id: req.params.guildId },
Expand Down

0 comments on commit 5759add

Please sign in to comment.