@firecms/collection_editor 3.0.0-canary.75 → 3.0.0-canary.77

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.es.js CHANGED
@@ -4920,8 +4920,7 @@ const Yt = (t, r, n, i) => {
4920
4920
  let l;
4921
4921
  return t || (l = "You must specify a path in the database for this collection"), r && n?.includes(t.trim().toLowerCase()) && !i && (l = "There is already a collection with the specified path. If you want to have multiple collections referring to the same database path, make sure the have different ids"), Vr(t).split("/").length % 2 === 0 && (l = `Collection paths must have an odd number of segments: ${t}`), l;
4922
4922
  }, on = (t, r, n, i) => {
4923
- if (!t)
4924
- return;
4923
+ if (!t) return;
4925
4924
  let l;
4926
4925
  return r && n?.includes(t.trim().toLowerCase()) && (l = "There is already a collection that uses this value as a path"), r && i?.includes(t.trim().toLowerCase()) && (l = "There is already a collection which uses this id"), l;
4927
4926
  }, hr = G.createContext({}), fr = G.createContext({}), ln = G.memo(
@@ -5060,8 +5059,7 @@ const Yt = (t, r, n, i) => {
5060
5059
  id: N,
5061
5060
  property: E
5062
5061
  }) => {
5063
- if (!v || !N)
5064
- return;
5062
+ if (!v || !N) return;
5065
5063
  const B = !v.propertyKey;
5066
5064
  return n.saveProperty({
5067
5065
  path: v?.editedCollectionId,
@@ -5077,8 +5075,7 @@ const Yt = (t, r, n, i) => {
5077
5075
  },
5078
5076
  onPropertyChangedImmediate: !1,
5079
5077
  onDelete: () => {
5080
- if (!v?.propertyKey)
5081
- return;
5078
+ if (!v?.propertyKey) return;
5082
5079
  const N = v?.currentPropertiesOrder?.filter((E) => E !== v?.propertyKey);
5083
5080
  return n.deleteProperty({
5084
5081
  path: v?.editedCollectionId,