Skip to content

Commit

Permalink
changed the variable to a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
mrahmatu committed Aug 29, 2024
1 parent 5dbe394 commit 2bc56f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/admin/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ async function buildNamespace(language, namespace) {
let title = namespace.match(/admin\/(.+?)\/(.+?)$/);

if (title) {
let section = title[1] === 'development' ? 'advanced' : title[1];
let subsection = title[2] ? ` > [[admin/menu:${section}/${title[2]}]]` : '';
const section = title[1] === 'development' ? 'advanced' : title[1];
const subsection = title[2] ? ` > [[admin/menu:${section}/${title[2]}]]` : '';
title = `[[admin/menu:section-${section}]]${subsection}`;

// Translate the title
Expand Down

0 comments on commit 2bc56f1

Please sign in to comment.