Import: fix json undefined when non json file provided
To reproduce the issue (before this patch) import anything that is not a valid json and look at the client console: there should be a JS error json is undefined
.
You don't pay for Framagit, because it is funded by donations to Framasoft. Our not-for-profit needs any support you can afford: support.framasoft.org.
Framagit est gratuit car il est financé par les dons à Framasoft. Notre association a besoin de votre soutien sur soutenir.framasoft.org.
To reproduce the issue (before this patch) import anything that is not a valid json and look at the client console: there should be a JS error json is undefined
.