Skip to content

Fix pagination error when API returns empty array#1203

Merged
kushalshit27 merged 4 commits intomasterfrom
fix-DXCDT-1160-multiple-custom-domains-enhanced-ea
Nov 14, 2025
Merged

Fix pagination error when API returns empty array#1203
kushalshit27 merged 4 commits intomasterfrom
fix-DXCDT-1160-multiple-custom-domains-enhanced-ea

Conversation

@kushalshit27
Copy link
Contributor

@kushalshit27 kushalshit27 commented Nov 14, 2025

🔧 Changes

This pull request makes a minor improvement to the getEntity function. The function now gracefully handles cases where the response is empty by returning an empty array instead of throwing an error.

  • The getEntity function now returns an empty array when the response is empty, preventing unnecessary errors for this case.

📚 References

🔬 Testing

  • test pass

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@kushalshit27 kushalshit27 requested a review from a team as a code owner November 14, 2025 06:23
@kushalshit27 kushalshit27 merged commit d97b784 into master Nov 14, 2025
5 checks passed
@kushalshit27 kushalshit27 deleted the fix-DXCDT-1160-multiple-custom-domains-enhanced-ea branch November 14, 2025 06:36
@kushalshit27 kushalshit27 mentioned this pull request Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants