Skip to content

Commit 9565b5e

Browse files
committed
MOBILE-1987 formattext: Show content if watch variable not found
1 parent bfb2a0c commit 9565b5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

www/core/directives/formattext.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ angular.module('mm.core')
394394
scope.$watch(variable, function() {
395395
formatAndRenderContents(scope, element, attrs, content);
396396
});
397+
} else {
398+
// Variable not found, just format the original content.
399+
formatAndRenderContents(scope, element, attrs, content);
397400
}
398401
} else {
399402
formatAndRenderContents(scope, element, attrs, content);

0 commit comments

Comments
 (0)