@knowlearning/agents 0.4.7 → 0.4.8
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/agents/generic.js +1 -1
- package/package.json +1 -1
package/agents/generic.js
CHANGED
|
@@ -345,7 +345,7 @@ export default function Agent({ host, token, WebSocket, protocol='ws', uuid, fet
|
|
|
345
345
|
|
|
346
346
|
function mutate(scope, initialize=true) {
|
|
347
347
|
const mp = s => new MutableProxy(s || {}, patch => interact(scope, patch))
|
|
348
|
-
return initialize ? state.then(mp) : mp({})
|
|
348
|
+
return initialize ? state(scope).then(mp) : mp({})
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
function reset(scope) {
|