Skip to content

Commit c19777c

Browse files
committed
Stops sending request in draftsService with empty entityIds
(#4099)
1 parent 1d41f04 commit c19777c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plus/drafts/draftsService.ts

+4
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,10 @@ export class DraftService implements Disposable {
863863
return EntityIdentifierUtils.encode(getEntityIdentifierInput(pr));
864864
});
865865

866+
if (prEntityIds.length === 0) {
867+
return {};
868+
}
869+
866870
const body = JSON.stringify({
867871
prEntityIds: prEntityIds,
868872
});

0 commit comments

Comments
 (0)