Fix hide_case being required
This commit is contained in:
parent
9bae5eaea7
commit
ddaf3c98ee
4 changed files with 8 additions and 8 deletions
|
@ -26,7 +26,7 @@ export const MuteAction = automodAction({
|
|||
remove_roles_on_mute: tNullable(t.union([t.boolean, t.array(t.string)])),
|
||||
restore_roles_on_mute: tNullable(t.union([t.boolean, t.array(t.string)])),
|
||||
postInCaseLog: tNullable(t.boolean),
|
||||
hide_case: t.boolean,
|
||||
hide_case: tNullable(t.boolean),
|
||||
}),
|
||||
|
||||
defaultConfig: {
|
||||
|
@ -46,7 +46,7 @@ export const MuteAction = automodAction({
|
|||
extraNotes: matchResult.fullSummary ? [matchResult.fullSummary] : [],
|
||||
automatic: true,
|
||||
postInCaseLogOverride: actionConfig.postInCaseLog ?? undefined,
|
||||
hide: actionConfig.hide_case,
|
||||
hide: Boolean(actionConfig.hide_case),
|
||||
};
|
||||
|
||||
const userIdsToMute = unique(contexts.map(c => c.user?.id).filter(nonNullish));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue