@pocketprep/ui-kit 3.4.62 → 3.4.63

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.
@@ -336,8 +336,14 @@ export default class Table extends Vue {
336
336
 
337
337
  @Watch('defaultSort')
338
338
  defaultSortChanged () {
339
- if (this.defaultSort) {
340
- this.currentSort = JSON.parse(JSON.stringify(this.defaultSort))
339
+ if (!this.defaultSort) {
340
+ return
341
+ }
342
+ const defaultSort = JSON.stringify(this.defaultSort)
343
+ const currentSort = JSON.stringify(this.currentSort)
344
+
345
+ if (defaultSort !== currentSort) {
346
+ this.currentSort = JSON.parse(defaultSort)
341
347
  this.emitSort()
342
348
  }
343
349
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.4.62",
3
+ "version": "3.4.63",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {