Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
fix: camera full screen opening when clicking door entry camera (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
akloeckner authored Oct 11, 2020
1 parent 716a30c commit 18f232a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/controllers/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ App.controller('Main', function ($scope, $timeout, $location, Api) {
$scope.getCameraEntityFullscreen = function (item) {
let entity_id = getItemFieldValue('fullscreen.id', item, {});

if (typeof entity_id === 'undefined') {
if (entity_id === null) {
entity_id = item.id;
}

Expand Down Expand Up @@ -1776,6 +1776,7 @@ App.controller('Main', function ($scope, $timeout, $location, Api) {
state: false,
title: false,
position: [0, 0],
action: function (item, entity) {},
classes: ['-item-fullsize', '-item-non-clickable'],
customStyles: {
width: null,
Expand Down

0 comments on commit 18f232a

Please sign in to comment.