@servicetitan/table 12.8.4 → 12.8.8-patch.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -79,7 +79,7 @@ function fieldValuesColumnMenuFilter(tableState, renderItem = defaultRenderItem)
79
79
  const filteredData = !searchQuery
80
80
  ? this.data
81
81
  : this.data.filter(v => v.text.toLowerCase().includes(searchQuery));
82
- return filteredData.sort((a, b) => {
82
+ return filteredData.slice().sort((a, b) => {
83
83
  if (a.text === b.text) {
84
84
  return 0;
85
85
  }
@@ -1 +1 @@
1
- {"version":3,"file":"field-values-filter.js","sourceRoot":"","sources":["../../src/filters/field-values-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA6E;AAC7E,kDAA0B;AAE1B,2CAAsC;AACtC,+BAAiF;AAEjF,qEAAqD;AAIrD,+DAAqE;AAErE,SAAgB,QAAQ,CAAI,IAAO,EAAE,KAAU;IAC3C,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AAFD,4BAEC;AAED,SAAgB,2BAA2B,CACvC,UAA8B,EAC9B,aAA4C,iBAAiB;IAO7D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,eAAK,CAAC,SAA+B;QAmCrE,YAAY,KAA2B;YACnC,KAAK,CAAC,KAAK,CAAC,CAAC;YAnCL;;;;uBAAe,EAAE;eAAC;YAElB;;;;uBAAc,EAAE;eAAC;YAsC7B;;;;uBAA0B,CAAC,EAAuC,EAAE,EAAE;oBAClE,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;gBACvC,CAAC;eAAC;YAMF;;;;uBAAe,CAAC,KAAW,EAAE,OAAgB,EAAE,EAAqC,EAAE,EAAE;oBACpF,MAAM,cAAc,GAAG,OAAO;wBAC1B,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;wBAChC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MA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description": "",
5
5
  "homepage": "https://docs.st.dev/docs/frontend/table",
6
6
  "repository": {
@@ -26,11 +26,11 @@
26
26
  "memoize-one": "~5.2.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@servicetitan/data-query": "^12.8.4",
29
+ "@servicetitan/data-query": "^12.8.8-patch.1",
30
30
  "@servicetitan/design-system": "~9.2.1",
31
- "@servicetitan/form": "^12.8.4",
32
- "@servicetitan/react-ioc": "^12.8.4",
33
- "@servicetitan/suppress-warnings": "^12.8.4",
31
+ "@servicetitan/form": "^12.8.8-patch.1",
32
+ "@servicetitan/react-ioc": "^12.8.8-patch.1",
33
+ "@servicetitan/suppress-warnings": "^12.8.8-patch.1",
34
34
  "@types/accounting": "~0.4.1",
35
35
  "@types/react": "~17.0.9",
36
36
  "accounting": "~0.4.1",
@@ -61,5 +61,5 @@
61
61
  "cli": {
62
62
  "webpack": false
63
63
  },
64
- "gitHead": "2b09cb821f571fece97b26120d80e9fb5b2d683d"
64
+ "gitHead": "8155c72ee81760e9b30c3c074757f9988ded3dd5"
65
65
  }
@@ -35,7 +35,7 @@ export function fieldValuesColumnMenuFilter<T, TId extends IdType = never>(
35
35
  ? this.data
36
36
  : this.data.filter(v => v.text.toLowerCase().includes(searchQuery));
37
37
 
38
- return filteredData.sort((a, b) => {
38
+ return filteredData.slice().sort((a, b) => {
39
39
  if (a.text === b.text) {
40
40
  return 0;
41
41
  }