Skip to content

Commit 414463f

Browse files
author
Patrick Knabe
committed
Last value after reload, not zero, is displayed
1 parent 97fd5b2 commit 414463f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

display.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = RED => {
3333
order: config.order,
3434
beforeEmit: msg => ( { msg } ),
3535
initController: $scope => {
36-
$( () => $scope.msg = { payload: 0 } );
36+
$( () => $scope.msg = $scope.msg || { payload: 0 } );
3737

3838
$scope.$watch( 'msg', msg => {
3939
const pattern = {

0 commit comments

Comments
 (0)