fix NT validation of headers after saving

This commit is contained in:
Keith Grant 2019-09-10 10:44:19 -07:00
parent a3a5db1c44
commit 8192b79b1f
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ export default ['Rest', 'Wait', 'NotificationsFormObject',
$scope.$watch('headers', function validate_headers(str) {
try {
let headers = JSON.parse(str);
const headers = typeof str === 'string' ? JSON.parse(str) : str;
if (_.isObject(headers) && !_.isArray(headers)) {
let valid = true;
for (let k in headers) {

View File

@ -189,7 +189,7 @@ export default ['Rest', 'Wait',
$scope.$watch('headers', function validate_headers(str) {
try {
let headers = JSON.parse(str);
const headers = typeof str === 'string' ? JSON.parse(str) : str;
if (_.isObject(headers) && !_.isArray(headers)) {
let valid = true;
for (let k in headers) {