mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-26 07:30:13 +00:00
Fix an undefined error
This commit is contained in:
@@ -33,6 +33,9 @@ function arrayUnique(arr) {
|
|||||||
// Imported from ownCloud contact app
|
// Imported from ownCloud contact app
|
||||||
app.filter('peerColor', function() {
|
app.filter('peerColor', function() {
|
||||||
return function(input) {
|
return function(input) {
|
||||||
|
if (typeof input == 'undefined') {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
// Check if core has the new color generator
|
// Check if core has the new color generator
|
||||||
if (typeof input.toHsl === 'function') {
|
if (typeof input.toHsl === 'function') {
|
||||||
var hsl = input.toHsl();
|
var hsl = input.toHsl();
|
||||||
|
|||||||
Reference in New Issue
Block a user