@7365admin1/layer-common 3.2.2-staging.103 → 3.2.2-staging.104

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.
@@ -363,14 +363,18 @@ function setBuildingUnit() {
363
363
  buildingUnit.value.companyRegistrationNumber = "";
364
364
  buildingUnit.value.leaseStart = "";
365
365
  buildingUnit.value.leaseEnd = "";
366
+ unitLabels.value = ["Unit 1"];
366
367
  }
367
368
 
368
369
  async function submit() {
369
370
  disable.value = true;
370
371
  const { buildingUnitFiles, companyName, companyRegistrationNumber, leaseStart, leaseEnd, ...rest } = buildingUnit.value;
372
+ const labels = unitLabels.value.map((label) => label.trim());
373
+ rest.name = labels[0] || rest.name;
374
+
371
375
  try {
372
376
  await add({
373
- labels: unitLabels.value,
377
+ labels,
374
378
  unit: rest,
375
379
  qty: buildingUnitQty.value,
376
380
  });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "3.2.2-staging.103",
5
+ "version": "3.2.2-staging.104",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "publishConfig": {