@rpg-engine/long-bow 0.2.49 → 0.2.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28002,12 +28002,15 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType)
28002
28002
  contextActionMenu = generateContextMenuListOptions(ActionsForMapContainer.Other);
28003
28003
  break;
28004
28004
  }
28005
- }
28006
- if (item.hasUseWith) {
28007
- contextActionMenu.push({
28008
- id: 'use-with',
28009
- text: 'Use With...'
28005
+ var contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
28006
+ return action.text.toLowerCase().includes('use with');
28010
28007
  });
28008
+ if (item.hasUseWith && contextActionMenuDontHaveUseWith) {
28009
+ contextActionMenu.push({
28010
+ id: 'use-with',
28011
+ text: 'Use with...'
28012
+ });
28013
+ }
28011
28014
  }
28012
28015
  return contextActionMenu;
28013
28016
  };