Fix JS error when trying to insert a link in an empty RTE
This commit is contained in:
committed by
Sebastiaan Janssen
parent
4460e8d369
commit
e387c3b27f
@@ -207,7 +207,7 @@ function entityResource($q, $http, umbRequestHelper) {
|
||||
getAnchors: function (rteContent) {
|
||||
|
||||
if (!rteContent || rteContent.length === 0) {
|
||||
return [];
|
||||
return $q.when([]);
|
||||
}
|
||||
|
||||
return umbRequestHelper.resourcePromise(
|
||||
|
||||
Reference in New Issue
Block a user