Fixes this bug in a hacky way
slightly better
Merge pull request #4202 from dimagi/fix-branch

Fix js error in custom case exports