Skip to content

Commit

Permalink
fix(electron): File Workspace > workspace plugins missing from Plugin…
Browse files Browse the repository at this point in the history
… Manager and not applied to any request - as workspace plugins don't have plugin.collectionId = null property when coming from file workspace
  • Loading branch information
flawiddsouza committed Dec 12, 2024
1 parent 29394a1 commit 1e6eb75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/electron/src/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,7 @@ async function getWorkspacePlugins(workspace) {
const workspacePluginsData = JSON.parse(await fs.readFile(workspacePluginsPath, 'utf8'))
workspacePluginsData.forEach((plugin) => {
plugin.workspaceId = workspace._id
plugin.collectionId = null
})
items.push(...workspacePluginsData)
} catch (err) {
Expand Down

0 comments on commit 1e6eb75

Please sign in to comment.