From b01c77fba4f1d2de60eeebe1fd3b422a3147c271 Mon Sep 17 00:00:00 2001 From: Alexander Knott <156598583+alexykn@users.noreply.github.com> Date: Sun, 25 May 2025 00:31:08 +0200 Subject: [PATCH] fix(file-select): update click handler after pinia refactor --- frontend/src/App.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 24c56c9..5215632 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -286,14 +286,13 @@ async function handleDeleteAllFiles() { console.error('Error deleting all files:', error) } } -async function onFileClick(file) { +async function onFileClick(fileInfo) { if (!selectedProfile.value) return try { - await handleFileClick(selectedProfile.value, file, (content) => { - text.value = content - setOriginalFileContent(content) - setCurrentFileId(file.id) - }) + const { file, content } = fileInfo + text.value = content + setOriginalFileContent(content) + setCurrentFileId(file.id) } catch (error) { console.error('Error handling file click:', error) }