sm-click-library-ui 0.0.298 → 0.0.299

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.
@@ -2011,18 +2011,18 @@ const ud = "v1/api/attendances/attendant/", dd = "v1/api/attendances/department/
2011
2011
  try {
2012
2012
  let n = `${cd}`;
2013
2013
  const t = await Jt.get(n);
2014
- this.instances = t.data, console.log(this.instances, t.data), await Promise.all(
2014
+ this.instances = t.data, await Promise.all(
2015
2015
  this.instances.map(async (a) => {
2016
2016
  a.isLoading = !0;
2017
2017
  try {
2018
2018
  const r = a.last_instance_status;
2019
- r === "DISCONNECTED" || r === "UNDEFINED" ? a.status = !1 : a.status = !0;
2020
- } catch {
2021
- a.status = "Offline";
2019
+ console.log(r), r === "DISCONNECTED" || r === "UNDEFINED" ? a.status = !1 : a.status = !0;
2020
+ } catch (r) {
2021
+ console.log(r), a.status = "Offline";
2022
2022
  }
2023
- a.isLoading = !1;
2023
+ console.log("carregou a ", a), a.isLoading = !1;
2024
2024
  })
2025
- ), this.count = this.instances.length, this.loaded = !0;
2025
+ ), console.log("passou"), this.count = this.instances.length, this.loaded = !0, console.log(this.loaded);
2026
2026
  } catch (n) {
2027
2027
  console.log("Erro ao buscar instâncias:", n), this.loaded = !0;
2028
2028
  }