fix: correct variable used in collection name update

This commit is contained in:
Pragadesh-45
2025-02-04 17:49:40 +05:30
parent 4598acd068
commit d0419edb92

View File

@@ -141,7 +141,7 @@ const registerRendererEventHandlers = (mainWindow, watcher, lastOpenedCollection
// Change new name of collection
let brunoConfig = JSON.parse(content);
brunoConfig.name = collectionName;
const cont = await stringifyJson(json);
const cont = await stringifyJson(brunoConfig);
// write the bruno.json to new dir
await writeFile(path.join(dirPath, 'bruno.json'), cont);