We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfcd2ed commit b4bfad2Copy full SHA for b4bfad2
src/helpers/findAll.ts
@@ -13,13 +13,13 @@ export function findAll(
13
options?: FindAllOptions
14
) {
15
const results = root.findAll(predicate);
16
- const includeHiddenElementsQueryOption =
17
- options?.includeHiddenElements ?? options?.hidden;
18
- const defaultIncludeHiddenElements =
19
- getConfig()?.defaultIncludeHiddenElements ?? getConfig()?.defaultHidden;
20
21
const hidden =
22
- includeHiddenElementsQueryOption ?? defaultIncludeHiddenElements;
+ options?.includeHiddenElements ??
+ options?.hidden ??
+ getConfig()?.defaultIncludeHiddenElements ??
+ getConfig()?.defaultHidden;
+
23
if (hidden) {
24
return results;
25
}
0 commit comments