 => {
                toast(error.message, "error");
              }
            );
          },
          setTenant: function(tenantId) {
            if (tenantId === undefined || tenantId === null) {
              return
            }
            tenant = this.tenants.find(obj => obj.id === tenantId);
            if (tenant) {
              this.selectedTenant = tenant;
              localStorage.setItem('selectedTenantId', tenant.id);
              localStorage.setItem('selectedTenant', JSON.stringify(te