Skip to content

Commit f273671

Browse files
committed
Stops sending request in draftsService with empty entityIds
(#4099)
1 parent 9a92b1f commit f273671

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
@@ -856,6 +856,10 @@ export class DraftService implements Disposable {
856856
return EntityIdentifierUtils.encode(getEntityIdentifierInput(pr));
857857
});
858858

859+
if (prEntityIds.length === 0) {
860+
return {};
861+
}
862+
859863
const body = JSON.stringify({
860864
prEntityIds: prEntityIds,
861865
});

0 commit comments

Comments
 (0)