@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.
@@ -1127,12 +1127,12 @@ var __publicField = (obj, key, value) => {
1127
1127
  );
1128
1128
  const selectStagesOfAssetType = restructureCreateSelectorWithArgs(
1129
1129
  toolkit.createSelector([selectAssetStages, (_state, assetTypeId) => assetTypeId], (stages, assetTypeId) => {
1130
- const stagesOfAssetType = stages.filter((stage) => stage.asset_type === assetTypeId);
1131
- const sortedStages = [...stagesOfAssetType].sort((a, b) => {
1132
- console.debug("Comparing priorities:", { a: a.priority, b: b.priority, diff: a.priority - b.priority });
1133
- return a.priority - b.priority;
1134
- });
1135
- console.debug("SORTED STAGES", sortedStages);
1130
+ const stagesOfAssetType = [...stages].filter((stage) => stage.asset_type === assetTypeId);
1131
+ const sortedStages = [...stagesOfAssetType].sort((a, b) => a.priority - b.priority);
1132
+ console.debug(
1133
+ "SORTED STAGES",
1134
+ sortedStages.map((s) => ({ id: s.offline_id, priority: s.priority }))
1135
+ );
1136
1136
  return fallbackToEmptyArray(sortedStages);
1137
1137
  })
1138
1138
  );