|
@@ -150,8 +150,8 @@ app.get('/fields', function(req, res, next) {
|
150
|
150
|
// Response will be JSON
|
151
|
151
|
res.header('Access-Control-Allow-Headers', 'Content-Type');
|
152
|
152
|
|
153
|
|
- // Send an array anyway, its length will determine if we need to display any
|
154
|
|
- let customFields = settings.customFields || [];
|
|
153
|
+ // Send an object anyway, its size will determine if we need to display any
|
|
154
|
+ let customFields = settings.customFields || {};
|
155
|
155
|
|
156
|
156
|
// Send custom fields data
|
157
|
157
|
res.status(200).send(customFields);
|