jobdone-shared-files 1.1.5 → 1.1.6

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.
@@ -88,22 +88,16 @@ const setSelected = (userId) => {
88
88
  resetSelected()
89
89
  return
90
90
  }
91
- let userIdList = optsAdjust.value.flatMap(i => i.users.map(item => (
92
- {
93
- ...item,
94
- organization: {
95
- organName: i.organName,
96
- organId: i.organId,
97
- users: i.users
98
- }
99
- }
100
- ))) || []
91
+ let userIdList = optsAdjust.value.flatMap(i => i.users) || []
101
92
  let user = userIdList.find(i => i.userId == userId)
102
93
  if (!user) {
103
94
  resetSelected()
104
95
  return
105
96
  }
106
- selectOrgan(user.organization)
97
+ selectOrgan({
98
+ organName: user.organization?.name,
99
+ organId: user.organization?.id,
100
+ })
107
101
  selectUser(user, true)
108
102
  }
109
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jobdone-shared-files",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Shared JS and SCSS for Jobdone Enterprise.",
5
5
  "main": "index.js",
6
6
  "scripts": {