@crystaltech/hsms-shared-ui 0.5.31-alpha-6 → 0.5.31-alpha-8

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
@@ -44964,12 +44964,12 @@ const zL = ({
44964
44964
  try {
44965
44965
  c(!0);
44966
44966
  const f = await fetch(
44967
- "/api/public/organization/hospitals/facility/undefined"
44967
+ "/api/public/organization/hospitals/facility"
44968
44968
  );
44969
44969
  if (!f.ok)
44970
44970
  throw new Error(`HTTP error! status: ${f.status}`);
44971
44971
  const p = await f.json();
44972
- s((p == null ? void 0 : p.data) || null);
44972
+ localStorage.setItem("hospital-info", JSON.stringify((p == null ? void 0 : p.data) || {})), s((p == null ? void 0 : p.data) || null);
44973
44973
  } catch (d) {
44974
44974
  console.error("Error fetching facility:", d);
44975
44975
  } finally {