Update error logs

pull/752/head
ioedeveloper 4 years ago
parent 6a8a134a17
commit aef57c9156
  1. 4
      apps/remix-ide/src/app/panels/file-panel.js

@ -108,8 +108,8 @@ module.exports = class Filepanel extends ViewPlugin {
* @param { name: string, type?: string[], path?: string[], extension?: string[], pattern?: string[] } * @param { name: string, type?: string[], path?: string[], extension?: string[], pattern?: string[] }
*/ */
registerContextMenuItem (item, callback) { registerContextMenuItem (item, callback) {
if (!item.name || !callback) return console.error('menu name and item is mandatory') if (!item.name || !callback) return console.error('menu name and callback is mandatory')
if (!item.type && !item.path && !item.extension && !item.pattern) return console.error('invalid menu match criteria provided') if (!item.type && !item.path && !item.extension && !item.pattern) return console.error('invalid file matching criteria provided')
item.action = callback item.action = callback
this.registeredMenuItems = [...this.registeredMenuItems, item] this.registeredMenuItems = [...this.registeredMenuItems, item]

Loading…
Cancel
Save