Skip to content
Snippets Groups Projects
Commit 7b4157c4 authored by john's avatar john
Browse files

block unnecessary calls to api when production editor is unassigned

parent bd133522
No related branches found
No related tags found
No related merge requests found
...@@ -72,6 +72,9 @@ export class BookBuilder extends React.Component { ...@@ -72,6 +72,9 @@ export class BookBuilder extends React.Component {
let patch let patch
if (_.isEmpty(productionEditors)) { if (_.isEmpty(productionEditors)) {
// production editor is already set to null
if (book.productionEditor === null) return
patch = { patch = {
id: book.id, id: book.id,
productionEditor: null productionEditor: null
......
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