Reverse include defaults check.

This commit is contained in:
Bauke 2022-03-07 22:45:50 +01:00
parent 6b86ba5d61
commit eaeedfe314
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export abstract class BaseOperation<P> {
for (const [key, value] of Object.entries(this.parameters)) { for (const [key, value] of Object.entries(this.parameters)) {
if ( if (
includeDefaults && !includeDefaults &&
key in defaults && key in defaults &&
(defaults as Record<string, any>)[key] === value (defaults as Record<string, any>)[key] === value
) { ) {