Fix crashes when loading datagrids with ?sort=,

Review Request #13072 — Created May 25, 2023 and updated

david
Djblets
release-4.x
djblets

We occasionally get error emails when web crawlers load datagrids with
poorly-formatted query parameters. Our own links will never try to load
?sort=,, but crawlers sometimes do. This change fixes it to properly
handle the situation where we have a non-empty sort string (",") but do
have empty sort parameters.

Loaded a dashboard with ?sort=, and saw that the page loaded instead
of creating a crash.

Summary
Fix crashes when loading datagrids with ?sort=,
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
chipx86
  1. Ship It!
  2. 
      
Loading...