Commit e5adb1c5 authored by Yannis Barlas's avatar Yannis Barlas

fix(editor panel): fix duplicate entries in editor selection dropdown

parent aa75f1cd
import { union } from 'lodash'
import { unionBy } from 'lodash'
import {
......@@ -75,7 +75,7 @@ export default (data, mutations) => {
const curators = disableAuthors(globalCurators, authorIds)
// either a global or a section editor can be assigned as editor on a manuscript
const editors = disableAuthors(
union(globalEditors, globalSectionEditors),
unionBy(globalEditors, globalSectionEditors, 'id'),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment