1
0
Fork 0
mirror of synced 2024-06-14 08:24:48 +12:00

Fix error when plugin is added

This commit is contained in:
Peter Clement 2022-09-21 16:19:07 +01:00
parent caab57f585
commit 885a4186d6

View file

@ -34,8 +34,7 @@ export function createPluginsStore() {
}
let res = await API.createPlugin(pluginData)
let newPlugin = res.plugins[0]
let newPlugin = res.plugin
update(state => {
const currentIdx = state.findIndex(plugin => plugin._id === newPlugin._id)
if (currentIdx >= 0) {