Skip to content

Commit 445fa98

Browse files
authored
Merge pull request aws-amplify#4826 from aws-amplify/search-fragment
fix bug so that top level fragments are included in search index
2 parents db0d83a + 8c6ef5a commit 445fa98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/build-algolia-search.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ async function tryParseImports(
199199
filename = filename.split('src/pages')[1];
200200
filename = filename.split('.mdx')[0];
201201

202-
if (!Object.keys(fragments).length === 0) {
202+
if (Object.keys(fragments).length !== 0) {
203203
// add platform specific fragments to source
204204
fragments[platform].forEach((fragment) => {
205205
const fragmentPath = path.join(__dirname, '..', fragment);

0 commit comments

Comments
 (0)