From 4ebd39685194f5ddb843c8c635135cc38de93dc3 Mon Sep 17 00:00:00 2001 From: Drew Banin Date: Thu, 27 Feb 2020 16:11:23 -0500 Subject: [PATCH] handle non-array (var) entries to accepted_values test --- src/app/services/project_service.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/services/project_service.js b/src/app/services/project_service.js index 0408c0a8..c988140c 100644 --- a/src/app/services/project_service.js +++ b/src/app/services/project_service.js @@ -190,7 +190,11 @@ angular test_info.short = 'F'; test_info.label = 'Foreign Key'; } else if (test.test_metadata.name == 'accepted_values') { - var values = test.test_metadata.kwargs.values.join(", ") + if (Array.isArray(test.test_metadata.kwargs.values)) { + var values = test.test_metadata.kwargs.values.join(", ") + } else { + var values = JSON.stringify(test.test_metadata.kwargs.values); + } test_info.short = 'A'; test_info.label = 'Accepted Values: ' + values; } else {