@thecorporation/cli 26.3.40 → 26.3.42
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/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3991,12 +3991,14 @@ async function formCreateHandler(ctx) {
|
|
|
3991
3991
|
}
|
|
3992
3992
|
const result = await ctx.client.createPendingEntity(payload);
|
|
3993
3993
|
await ctx.resolver.stabilizeRecord("entity", result);
|
|
3994
|
-
ctx.resolver.rememberFromRecord("entity", result);
|
|
3995
3994
|
if (result.entity_id) {
|
|
3996
3995
|
const newEntityId = String(result.entity_id);
|
|
3996
|
+
updateConfig((freshCfg) => {
|
|
3997
|
+
setActiveEntityId(freshCfg, newEntityId);
|
|
3998
|
+
setLastReference(freshCfg, "entity", newEntityId);
|
|
3999
|
+
});
|
|
3997
4000
|
setActiveEntityId(cfg, newEntityId);
|
|
3998
|
-
|
|
3999
|
-
saveConfig(cfg);
|
|
4001
|
+
setLastReference(cfg, "entity", newEntityId);
|
|
4000
4002
|
}
|
|
4001
4003
|
if (ctx.quiet) {
|
|
4002
4004
|
const id = result.entity_id;
|