@symbo.ls/fetch 2.7.6 → 2.7.20
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/index.js +2 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -83,7 +83,6 @@ export const fetchProject = (el, s, { userName, projectId, activeProject, ...opt
|
|
|
83
83
|
activeProject
|
|
84
84
|
}, options)
|
|
85
85
|
|
|
86
|
-
console.log('FETCHED', projectId, data)
|
|
87
86
|
syncSystem(data, el, s)
|
|
88
87
|
})
|
|
89
88
|
}
|
|
@@ -108,7 +107,8 @@ export const fetchUser = (el, s, options) => {
|
|
|
108
107
|
const userName = data.name
|
|
109
108
|
if (projects) {
|
|
110
109
|
s.update({ userName, projects })
|
|
111
|
-
const
|
|
110
|
+
const activeProjectData = projects[s.activeProject || 0]
|
|
111
|
+
const projectId = activeProjectData && activeProjectData.id
|
|
112
112
|
fetchProject(el, s, { userName, projectId, activeProject, ...options })
|
|
113
113
|
}
|
|
114
114
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/fetch",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.20",
|
|
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": "
|
|
12
|
+
"gitHead": "2046f544690817da05fc4dc1731c2f7e532ecf91"
|
|
13
13
|
}
|