Skip to content

Commit

Permalink
UI - bug fix for things without features
Browse files Browse the repository at this point in the history
Signed-off-by: thfries <thomas.fries0@gmail.com>
  • Loading branch information
thfries committed Nov 21, 2023
1 parent b9d874d commit 117389c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/modules/things/features.ts
Expand Up @@ -201,7 +201,7 @@ function updateFeatureEditors(featureJson) {
*/
function refreshFeature(thing, featureId = null) {
if (!dom.crudFeature.isEditing) {
if (thing) {
if (thing && thing['features'] && featureId) {
dom.crudFeature.idValue = featureId;
updateFeatureEditors(thing.features[featureId]);
} else {
Expand Down

0 comments on commit 117389c

Please sign in to comment.