3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-13 13:57:18 +00:00

Fix comment placement

This commit is contained in:
Dark 2021-03-19 02:00:26 +01:00
parent 5528010cc5
commit ff26ad2c41
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8

View file

@ -60,9 +60,10 @@ export const CasesUserCmd = modActionsCmd({
if (args.onyUnbans) typesToShow.push(CaseTypes.Unban);
if (typesToShow.length > 0) {
if (args.reverseFilters) cases = cases.filter(c => !typesToShow.includes(c.type));
// Reversed: Hide specified types
else cases = cases.filter(c => typesToShow.includes(c.type)); // Normal: Show only specified types
if (args.reverseFilters) cases = cases.filter(c => !typesToShow.includes(c.type));
// Normal: Show only specified types
else cases = cases.filter(c => typesToShow.includes(c.type));
}
const normalCases = cases.filter(c => !c.is_hidden);