diff --git a/ghost/admin/app/app.js b/ghost/admin/app/app.js index 83d7ac8493..8b0c9e7d1b 100755 --- a/ghost/admin/app/app.js +++ b/ghost/admin/app/app.js @@ -22,6 +22,22 @@ let App = Application.extend({ } }); +// TODO: remove once the validations refactor is complete +// eslint-disable-next-line +Ember.Debug.registerWarnHandler((message, options, next) => { + let skip = [ + 'ds.errors.add', + 'ds.errors.remove', + 'ds.errors.clear' + ]; + + if (skip.includes(options.id)) { + return; + } + + next(message, options); +}); + loadInitializers(App, config.modulePrefix); export default App;