i have added custom property panel but getting below error. i want to display only few tabs in the panel
Here is my code
var LOW_PRIORITY = 500;
// Create the custom magic tab.
// The properties are organized in groups.
function createMagicTabGroups(element, translate) {
// Create a group called “Black Magic”.
var blackMagicGroup = {
id: 'black-magic',
label: 'Black Magic',
entries: []
};
// Add the spell props to the black magic group.
//spellProps(blackMagicGroup, element, translate);
return [
blackMagicGroup
];
}
export default function CustomPropertiesProvider(propertiesPanel, translate) {
// Register our custom magic properties provider.
// Use a lower priority to ensure it is loaded after the basic BPMN properties.
propertiesPanel.registerProvider(LOW_PRIORITY, this);
this.getTabs = function(element) {
return function(entries) {
// Add the "magic" tab
var magicTab = {
id: 'magic',
label: 'Magic',
groups: createMagicTabGroups(element, translate)
};
entries.push(magicTab);
// Show general + "magic" tab
return entries;
}
};
}
CustomPropertiesProvider.$inject = [ ‘propertiesPanel’, ‘translate’ ]