cloudmr-ux 1.7.2 → 1.7.3

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.
package/dist/index.js CHANGED
@@ -1134,9 +1134,6 @@ var CMRSelectUpload = (props) => {
1134
1134
  props.onSelected(props.fileSelection[fileIndex]);
1135
1135
  setOpen(false);
1136
1136
  };
1137
- const sortedFiles = [...props.fileSelection].sort(
1138
- (a, b) => a.fileName.localeCompare(b.fileName)
1139
- );
1140
1137
  const selectionDialog = /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_Dialog6.default, { open, onClose: handleClose, children: [
1141
1138
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_DialogTitle6.default, { children: "Select or Upload" }),
1142
1139
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_DialogContent6.default, { sx: { width: 520 }, children: [
@@ -1145,7 +1142,7 @@ var CMRSelectUpload = (props) => {
1145
1142
  import_Autocomplete.default,
1146
1143
  {
1147
1144
  disabled: uploading,
1148
- options: sortedFiles,
1145
+ options: props.fileSelection,
1149
1146
  filterOptions: (options, state) => {
1150
1147
  const input = state.inputValue.toLowerCase();
1151
1148
  const filtered = options.filter(
package/dist/index.mjs CHANGED
@@ -1086,9 +1086,6 @@ var CMRSelectUpload = (props) => {
1086
1086
  props.onSelected(props.fileSelection[fileIndex]);
1087
1087
  setOpen(false);
1088
1088
  };
1089
- const sortedFiles = [...props.fileSelection].sort(
1090
- (a, b) => a.fileName.localeCompare(b.fileName)
1091
- );
1092
1089
  const selectionDialog = /* @__PURE__ */ jsxs12(Dialog6, { open, onClose: handleClose, children: [
1093
1090
  /* @__PURE__ */ jsx18(DialogTitle6, { children: "Select or Upload" }),
1094
1091
  /* @__PURE__ */ jsxs12(DialogContent6, { sx: { width: 520 }, children: [
@@ -1097,7 +1094,7 @@ var CMRSelectUpload = (props) => {
1097
1094
  Autocomplete,
1098
1095
  {
1099
1096
  disabled: uploading,
1100
- options: sortedFiles,
1097
+ options: props.fileSelection,
1101
1098
  filterOptions: (options, state) => {
1102
1099
  const input = state.inputValue.toLowerCase();
1103
1100
  const filtered = options.filter(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudmr-ux",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "author": "erosmontin@gmail.com",
5
5
  "license": "MIT",
6
6
  "repository": "erosmontin/cloudmr-ux",