update commit message
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
let config = {
|
||||
elements: {},
|
||||
ensure: {},
|
||||
isSectionAccessible: () => true,
|
||||
getReferenceData: () => null,
|
||||
getMagickDataset: () => null,
|
||||
calendarVisualsUi: null,
|
||||
@@ -82,7 +83,10 @@
|
||||
}
|
||||
|
||||
function setActiveSection(nextSection) {
|
||||
const normalized = VALID_SECTIONS.has(nextSection) ? nextSection : "home";
|
||||
const requestedSection = VALID_SECTIONS.has(nextSection) ? nextSection : "home";
|
||||
const normalized = config.isSectionAccessible?.(requestedSection) === false
|
||||
? "home"
|
||||
: requestedSection;
|
||||
activeSection = normalized;
|
||||
|
||||
const elements = config.elements || {};
|
||||
|
||||
Reference in New Issue
Block a user