@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.
@@ -28007,12 +28007,15 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType)
28007
28007
  contextActionMenu = generateContextMenuListOptions(shared.ActionsForMapContainer.Other);
28008
28008
  break;
28009
28009
  }
28010
- }
28011
- if (item.hasUseWith) {
28012
- contextActionMenu.push({
28013
- id: 'use-with',
28014
- text: 'Use With...'
28010
+ var contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
28011
+ return action.text.toLowerCase().includes('use with');
28015
28012
  });
28013
+ if (item.hasUseWith && contextActionMenuDontHaveUseWith) {
28014
+ contextActionMenu.push({
28015
+ id: 'use-with',
28016
+ text: 'Use with...'
28017
+ });
28018
+ }
28016
28019
  }
28017
28020
  return contextActionMenu;
28018
28021
  };