fix: default to tree view if extension shouldn't be shown (#25578)

Signed-off-by: Jonathan Winters <wintersjonathan0@gmail.com>
This commit is contained in:
jwinters01
2025-12-12 10:45:37 -05:00
committed by GitHub
parent ae03d8f2d1
commit 53b0beae4a

View File

@@ -784,6 +784,13 @@ Are you sure you want to disable auto-sync and rollback application '${props.mat
const activeStatusExt = state.statusExtensionsMap[selectedExtension];
const activeTopBarActionMenuExt = state.topBarActionMenuExtsMap[selectedExtension];
if (state.extensionsMap[pref.view] != null) {
const extension = state.extensionsMap[pref.view];
if (!extension.shouldDisplay(application)) {
appContext.navigation.goto('.', {view: Tree});
}
}
return (
<div className={`application-details ${props.match.params.name}`}>
<Page