refactor header title logic to use getBaseName for selectedPath

This commit is contained in:
tusharmagar 2026-02-18 10:53:27 +05:30
parent 8dd940a659
commit 087e809d4c

View file

@ -2500,7 +2500,7 @@ function App() {
? "mx-auto w-full max-w-4xl pb-28"
: "mx-auto w-full max-w-4xl min-h-full items-center justify-center pb-0"
const headerTitle = selectedPath
? selectedPath
? getBaseName(selectedPath)
: isGraphOpen
? 'Graph View'
: selectedBackgroundTask