diff --git a/app/app.js b/app/app.js index c30203af3..a78d2f18e 100644 --- a/app/app.js +++ b/app/app.js @@ -518,7 +518,7 @@ angular.module('portainer', [ return { 'response': function(response) { if (typeof(response.data) === 'string' && - (response.data.startsWith('Conflict.') || response.data.startsWith('conflict:'))) { + (_.startsWith(response.data, 'Conflict.') || _.startsWith(response.data, 'conflict:'))) { $.gritter.add({ title: 'Error', text: $('
').text(response.data).html(),