Fix JS error when trying to insert a link in an empty RTE

This commit is contained in:
Kenn Jacobsen
2020-01-08 10:39:18 +01:00
committed by Sebastiaan Janssen
parent 4460e8d369
commit e387c3b27f

View File

@@ -207,7 +207,7 @@ function entityResource($q, $http, umbRequestHelper) {
getAnchors: function (rteContent) {
if (!rteContent || rteContent.length === 0) {
return [];
return $q.when([]);
}
return umbRequestHelper.resourcePromise(