@saltcorn/server 0.9.4-beta.17 → 0.9.4-beta.18

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/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@saltcorn/server",
3
- "version": "0.9.4-beta.17",
3
+ "version": "0.9.4-beta.18",
4
4
  "description": "Server app for Saltcorn, open-source no-code platform",
5
5
  "homepage": "https://saltcorn.com",
6
6
  "main": "index.js",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
9
  "@aws-sdk/client-s3": "^3.451.0",
10
- "@saltcorn/base-plugin": "0.9.4-beta.17",
11
- "@saltcorn/builder": "0.9.4-beta.17",
12
- "@saltcorn/data": "0.9.4-beta.17",
13
- "@saltcorn/admin-models": "0.9.4-beta.17",
14
- "@saltcorn/filemanager": "0.9.4-beta.17",
15
- "@saltcorn/markup": "0.9.4-beta.17",
16
- "@saltcorn/sbadmin2": "0.9.4-beta.17",
10
+ "@saltcorn/base-plugin": "0.9.4-beta.18",
11
+ "@saltcorn/builder": "0.9.4-beta.18",
12
+ "@saltcorn/data": "0.9.4-beta.18",
13
+ "@saltcorn/admin-models": "0.9.4-beta.18",
14
+ "@saltcorn/filemanager": "0.9.4-beta.18",
15
+ "@saltcorn/markup": "0.9.4-beta.18",
16
+ "@saltcorn/sbadmin2": "0.9.4-beta.18",
17
17
  "@socket.io/cluster-adapter": "^0.2.1",
18
18
  "@socket.io/sticky": "^1.0.1",
19
19
  "adm-zip": "0.5.10",
package/routes/actions.js CHANGED
@@ -415,9 +415,9 @@ router.post(
415
415
  );
416
416
 
417
417
  const getMultiStepForm = async (req, id, table) => {
418
- const stateActions = getState().actions;
418
+ let stateActions = getState().actions;
419
419
  const stateActionKeys = Object.entries(stateActions)
420
- .filter(([k, v]) => !v.disableInList)
420
+ .filter(([k, v]) => !v.disableInList && (table || !v.requireRow))
421
421
  .map(([k, v]) => k);
422
422
  const actions = [...stateActionKeys];
423
423
  const triggers = Trigger.find({
@@ -427,7 +427,6 @@ const getMultiStepForm = async (req, id, table) => {
427
427
  actions.push(tr.name);
428
428
  });
429
429
  const actionConfigFields = [];
430
-
431
430
  for (const [name, action] of Object.entries(stateActions)) {
432
431
  if (!stateActionKeys.includes(name)) continue;
433
432
  const cfgFields = await getActionConfigFields(action, table);
@@ -660,7 +659,7 @@ router.post(
660
659
  : null;
661
660
  let form;
662
661
  if (trigger.action === "Multi-step action") {
663
- form = await getMultiStepForm(req, id);
662
+ form = await getMultiStepForm(req, id, table);
664
663
  } else {
665
664
  const cfgFields = await getActionConfigFields(action, table, {
666
665
  mode: "trigger",