@cocreate/organizations 1.22.0 → 1.22.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.22.1](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.22.0...v1.22.1) (2023-10-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * getFormData renamed to getData ([dba019c](https://github.com/CoCreate-app/CoCreate-organizations/commit/dba019c295054be92576e0d94b92966109dcd19e))
7
+
1
8
  # [1.22.0](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.21.6...v1.22.0) (2023-10-16)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/organizations",
3
- "version": "1.22.0",
3
+ "version": "1.22.1",
4
4
  "description": "A simple organizations component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "organizations",
package/src/client.js CHANGED
@@ -175,6 +175,7 @@ async function createOrganizationPromise() {
175
175
  }
176
176
  }
177
177
 
178
+
178
179
  async function createOrganization() {
179
180
  return organizationPromise || (organizationPromise = createOrganizationPromise());
180
181
  }
@@ -183,8 +184,8 @@ async function create(btn) {
183
184
  let formEl = btn.closest("form");
184
185
  if (!formEl) return;
185
186
 
186
- let organization = Elements.getFormData(formEl, 'organizations')
187
- let user = Elements.getFormData(formEl, 'users')
187
+ let organization = Elements.getData(formEl, 'organizations')
188
+ let user = Elements.getData(formEl, 'users')
188
189
 
189
190
  if (!organization || !organization.object)
190
191
  return