@raketa-cloud/admin 0.0.36 → 0.0.37

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "dev": "npx tailwindcss -i ./src/styles/application.css -o ../../apps/admin/static/application.css --watch",
@@ -26,6 +26,7 @@ const update = async (ctx) => {
26
26
  }
27
27
 
28
28
  const params = ctx.resourceParams.resource;
29
+
29
30
  const resource = ctx.client.pageRevisions.deepMerge(revision, params);
30
31
 
31
32
  const { errors } = await ctx.client.pageRevisions.update(
@@ -253,7 +253,7 @@ export default class FormBuilder extends HTMLBuilder {
253
253
 
254
254
  const checkboxItem = this.tag("input", null, {
255
255
  type: "checkbox",
256
- value,
256
+ value: desiredValue,
257
257
  ...rest,
258
258
  ...selected,
259
259
  });
@@ -373,7 +373,8 @@ export default class FormBuilder extends HTMLBuilder {
373
373
  const error = this.__getError(name);
374
374
 
375
375
  if (as === "checkbox") {
376
- const { hint = "", cbOptsRest } = rest;
376
+ const { hint = "", ...cbOptsRest } = rest;
377
+
377
378
  return this.group(
378
379
  [
379
380
  this.tag(