@overmap-ai/core 1.0.71-workspace-settings.5 → 1.0.71-workspace-settings.7

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.
@@ -1138,12 +1138,12 @@ const selectAssetTypeStagesMapping = restructureCreateSelectorWithArgs(
1138
1138
  );
1139
1139
  const selectStagesOfAssetType = restructureCreateSelectorWithArgs(
1140
1140
  createSelector([selectAssetStages, (_state, assetTypeId) => assetTypeId], (stages, assetTypeId) => {
1141
- const stagesOfAssetType = stages.filter((stage) => stage.asset_type === assetTypeId);
1142
- const sortedStages = [...stagesOfAssetType].sort((a, b) => {
1143
- console.debug("Comparing priorities:", { a: a.priority, b: b.priority, diff: a.priority - b.priority });
1144
- return a.priority - b.priority;
1145
- });
1146
- console.debug("SORTED STAGES", sortedStages);
1141
+ const stagesOfAssetType = [...stages].filter((stage) => stage.asset_type === assetTypeId);
1142
+ const sortedStages = [...stagesOfAssetType].sort((a, b) => a.priority - b.priority);
1143
+ console.debug(
1144
+ "SORTED STAGES",
1145
+ sortedStages.map((s) => ({ id: s.offline_id, priority: s.priority }))
1146
+ );
1147
1147
  return fallbackToEmptyArray(sortedStages);
1148
1148
  })
1149
1149
  );