Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
editoria
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yannis Barlas
editoria
Commits
7b4157c4
Commit
7b4157c4
authored
7 years ago
by
john
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/components/BookBuilder/BookBuilder.jsx
+3
-0
3 additions, 0 deletions
app/components/BookBuilder/BookBuilder.jsx
with
3 additions
and
0 deletions
app/components/BookBuilder/BookBuilder.jsx
+
3
−
0
View file @
7b4157c4
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment