@symbo.ls/fetch 2.7.6 → 2.7.10

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -108,7 +108,8 @@ export const fetchUser = (el, s, options) => {
108
108
  const userName = data.name
109
109
  if (projects) {
110
110
  s.update({ userName, projects })
111
- const projectId = projects[s.activeProject || 0].id
111
+ const activeProjectData = projects[s.activeProject || 0]
112
+ const projectId = activeProjectData && activeProjectData.id
112
113
  fetchProject(el, s, { userName, projectId, activeProject, ...options })
113
114
  }
114
115
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/fetch",
3
- "version": "2.7.6",
3
+ "version": "2.7.10",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "@domql/cookie": "latest",
@@ -9,5 +9,5 @@
9
9
  "@symbo.ls/config-default": "latest",
10
10
  "@symbo.ls/temp-db": "latest"
11
11
  },
12
- "gitHead": "54d90eecb8bde751b2ba53caae30778aa7f3069c"
12
+ "gitHead": "2b4828cb28cfdd3f9785c05917f0f90616fb032b"
13
13
  }