Skip to content

Commit 3ba43c9

Browse files
authored
Merge pull request #932 from dpalou/MOBILE-1987
MOBILE-1987 formattext: Show content if watch variable not found
2 parents fb915fd + 9565b5e commit 3ba43c9

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)