From 9812bf187fe3b3be17e91b07b91e929a1705dfdc Mon Sep 17 00:00:00 2001 From: Shubham Padia Date: Thu, 21 Aug 2025 08:23:22 +0000 Subject: [PATCH] starlight_help: Do not pass global variable as argument. --- starlight_help/src/components/NavigationSteps.astro | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/starlight_help/src/components/NavigationSteps.astro b/starlight_help/src/components/NavigationSteps.astro index 76eb1f8f02..faf25b2f01 100644 --- a/starlight_help/src/components/NavigationSteps.astro +++ b/starlight_help/src/components/NavigationSteps.astro @@ -331,10 +331,7 @@ const getSettingsMarkdown = ( `; -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];