Add writing of query params

This commit is contained in:
MattIPv4
2020-05-05 16:29:13 +01:00
parent 795edd2255
commit f2c0878cda
4 changed files with 27 additions and 6 deletions

View File

@@ -29,7 +29,10 @@ export default (domains, global) => {
// Handle domains
// Always save changes, even if none, so we can replicate the correct number of domains
exportData.domains = domains.map(domain => categoriesExport(domain[0]));
exportData.domains = domains.map(domain => categoriesExport(domain[0])).reduce((prev, current, index) => {
prev[index] = current;
return prev;
}, {});
// Handle global
// If there were any category changes, save global changes