starlight_help: Do not pass global variable as argument.

This commit is contained in:
Shubham Padia
2025-08-21 08:23:22 +00:00
committed by Tim Abbott
parent fc176fedd4
commit 9812bf187f

View File

@@ -331,10 +331,7 @@ const getSettingsMarkdown = (
</ol>
`;
const getSettingsHTML = (
setting_key: string,
SHOW_RELATIVE_LINKS: boolean,
): string => {
const getSettingsHTML = (setting_key: string): string => {
const {setting_type, setting_name, setting_link} =
setting_link_mapping[setting_key]!;
@@ -404,7 +401,7 @@ if (
let resultHTML: string | undefined;
if (navigation_link_type === "settings") {
resultHTML = getSettingsHTML(target.split("/")[1], SHOW_RELATIVE_LINKS);
resultHTML = getSettingsHTML(target.split("/")[1]);
} else {
const link_type = target.split("/")[1];
const key = target.split("/")[2];