mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-20 02:15:12 +00:00
fix: use skillFile path in search index for skills
When searching for skills on the homepage, clicking a result would fail to load because the search index stored the folder path (e.g., skills/my-skill) instead of the SKILL.md file path. This caused fetchFileContent() to fail. Changed path property to use skill.skillFile which contains the correct path to the SKILL.md file that can be fetched and displayed in the modal.
This commit is contained in:
@@ -579,7 +579,7 @@ function generateSearchIndex(
|
|||||||
id: skill.id,
|
id: skill.id,
|
||||||
title: skill.title,
|
title: skill.title,
|
||||||
description: skill.description,
|
description: skill.description,
|
||||||
path: skill.path,
|
path: skill.skillFile,
|
||||||
searchText: `${skill.title} ${skill.description}`.toLowerCase(),
|
searchText: `${skill.title} ${skill.description}`.toLowerCase(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user