Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@labkey/components",
"version": "6.58.3",
"version": "6.58.4",
"description": "Components, models, actions, and utility functions for LabKey applications and pages",
"sideEffects": false,
"files": [
Expand Down
6 changes: 5 additions & 1 deletion packages/components/releaseNotes/components.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# @labkey/components
Components, models, actions, and utility functions for LabKey applications and pages

### version 6.58.2
### version 6.58.4
*Released*: 12 August 2025
- Adding new parent alias on designer doesn't always add to the bottom of the list

### version 6.58.3
*Released*: 7 August 2025
- Add `StoragePositionNumber` as a sample storage column

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ActionURL, Ajax, Filter, getServerContext, PermissionTypes, Query, Security, Utils } from '@labkey/api';
import { List, Map } from 'immutable';
import { List, Map, OrderedMap } from 'immutable';

import { getSelected, getSelectedDataDeprecated, setSnapshotSelections } from '../../actions';

Expand Down Expand Up @@ -1032,7 +1032,7 @@ export const initParentOptionsSelects = (
idPrefix?: string,
formatLabel?: (name: string, prefix: string, isDataClass?: boolean, containerPath?: string) => string
): Promise<{
parentAliases: Map<string, IParentAlias>;
parentAliases: OrderedMap<string, IParentAlias>;
parentOptions: IParentOption[];
}> => {
const promises: Promise<SelectRowsResponse>[] = [];
Expand Down Expand Up @@ -1097,7 +1097,8 @@ export const initParentOptionsSelects = (

const parentOptions = allOptions.sort(naturalSortByProperty('label'));

let parentAliases = Map<string, IParentAlias>();
// used ordered map so new import aliases are added after existing aliases on the UI
let parentAliases = OrderedMap<string, IParentAlias>();

if (importAliases) {
Object.keys(importAliases).forEach(key => {
Expand Down