From 0e5ccaf642525e8e9b1bd7fb2a9f982cdbd57bcb Mon Sep 17 00:00:00 2001 From: Its-treason Date: Thu, 14 Mar 2024 22:33:10 +0100 Subject: [PATCH] fix: Collection being changed during import The collection name was changed to the sanitized directory, but the collection name is saved in the bruno.json where it does not need to be sanitized Fixes: - https://github.com/usebruno/bruno/issues/1651 - https://github.com/usebruno/bruno/issues/219 --- packages/bruno-electron/src/ipc/collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-electron/src/ipc/collection.js b/packages/bruno-electron/src/ipc/collection.js index 8994075784..e0b718a221 100644 --- a/packages/bruno-electron/src/ipc/collection.js +++ b/packages/bruno-electron/src/ipc/collection.js @@ -482,7 +482,7 @@ const registerRendererEventHandlers = (mainWindow, watcher, lastOpenedCollection const uid = generateUidBasedOnHash(collectionPath); const brunoConfig = { version: '1', - name: collectionName, + name: collection.name, type: 'collection', ignore: ['node_modules', '.git'] };