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
Purpose
Related to wso2/product-iots#1681
Goals
Approach
User stories
Release note
Documentation
Training
Certification
Marketing
Automation tests
Security checks
Samples
Related PRs
Migrations (if applicable)
Test environment
Learning