wso2 / carbon-device-mgt

Apache License 2.0
53 stars 113 forks source link

Fix policy view interface loading issue #1206

Closed madawas closed 6 years ago

madawas commented 6 years ago

Purpose

When the policy view page is loaded some of the variables of the policyPayloadObj becomes undefined or null. This commit checks for the empty and undefined variables.

Related to wso2/product-iots#1681

Goals

Fixing the policy UI not loading issue

Approach

Checking for null and empty values in possible places

User stories

N/A

Release note

Fix policy view interface loading issue

Documentation

N/A

Training

N/A

Certification

N/A

Marketing

N/A

Automation tests

Security checks

Samples

N/A

Related PRs

N/A

Migrations (if applicable)

N/A

Test environment

JDK 1.8.0_161, Ubuntu 16.04, H2, Chrome latest

Learning

N/A