Skip to content

Commit 4833973

Browse files
committed
refactor: use selected file view in app files tab
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent b981ad3 commit 4833973

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/RightSidebar/AppFilesTab.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ async function update(fileInfo: FileInfo) {
155155
156156
const fileId = await filesStore.selectFileByNodeId(fileInfo.id)
157157
if (fileId) {
158-
const file = filesStore.getFile()
159-
const displayName = file?.name || fileInfo.name
158+
const displayName = filesStore.getSelectedFileView()?.name || fileInfo.name
160159
161160
nextTick(() => {
162161
const titleElement = document.querySelector('.app-sidebar-header__mainname')

0 commit comments

Comments
 (0)