Skip to content

Commit

Permalink
fix small bug with empty act id list when updating anchors
Browse files Browse the repository at this point in the history
`mutation {}` isn't a valid GQL query
  • Loading branch information
skovati committed Jul 8, 2024
1 parent 68d1988 commit 3d193fc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ public void updatePlanActivityDirectiveAnchors(final PlanId planId, final List<S
throws MerlinServiceException, IOException
{
final var request = new StringBuilder();
if (acts.isEmpty()) return;
request.append("mutation {");
for (SchedulingActivityDirective act: acts) {
final var id = instancesToIds.get(act).id();
Expand Down

0 comments on commit 3d193fc

Please sign in to comment.