Skip to content

Commit edcbeb1

Browse files
committed
Bugfix for patternType docs - Atoms docs were showing in Atoms/Forms View All
1 parent ca457f5 commit edcbeb1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/PatternLab/PatternData/Exporters/PatternPartialsExporter.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,13 @@ public function run($type = "", $subtype = "") {
114114

115115
}
116116

117-
} else if (($patternStoreData["category"] == "pattern") && $canShow && (isset($patternStoreData["full"]) && ($type === $patternStoreData["full"] || $type === ""))) {
117+
} else if (
118+
($patternStoreData["category"] == "pattern")
119+
&& $canShow
120+
&& (isset($patternStoreData["full"])
121+
&& ($type === $patternStoreData["full"] || $type === ""))
122+
&& ($subtype === "")
123+
) {
118124
// This is for `patternType` docs. Given this structure:
119125
// - _patterns/
120126
// - atoms/

0 commit comments

Comments
 (0)