1"use strict";(self.webpackChunkdigital_world_trader=self.webpackChunkdigital_world_trader||[]).push([[4009],{94009:function(e,a,t){t.r(a),t(35890);var n=t(96540),l=t.n(n),r=t(29863);a.default=()=>{const[e,a]=(0,n.useState)([]),[t,o]=(0,n.useState)(!0),[i,s]=(0,n.useState)(null);return(0,n.useEffect)(()=>{r.A.get("dashboard/organizations").then(e=>{console.log("123",e?.data?.data?.organizations);const t=e?.data?.data?.organizations;Array.isArray(t)?a(t):(console.warn("Expected array but got:",t),a([]))}).catch(e=>{console.error("Failed to fetch organizations:",e),s("Failed to load organizations.")}).finally(()=>{o(!1)})},[]),t?l().createElement("p",null,"Loading..."):i?l().createElement("p",{style:{color:"red"}},i):l().createElement("div",null,l().createElement("h3",null,"My Organizations"),0===e.length?l().createElement("p",null,"No organizations found."):l().createElement("ul",null,e.map(e=>l().createElement("li",{key:e.id},e.organization_name))))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.