@overmap-ai/core 1.0.58-sign-up-hotfix.0 → 1.0.58-sign-up-hotfix.2

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.
@@ -5114,12 +5114,8 @@ var __publicField = (obj, key, value) => {
5114
5114
  const initialDataUuid = uuid.v4();
5115
5115
  const timeout = 5;
5116
5116
  let timedOut = false;
5117
- let initialDataRequestFinished = false;
5118
5117
  const timeoutPromise = new Promise((_, reject) => {
5119
5118
  setTimeout(() => {
5120
- if (initialDataRequestFinished) {
5121
- return void 0;
5122
- }
5123
5119
  timedOut = true;
5124
5120
  store.dispatch(markForDeletion(uuid$1));
5125
5121
  store.dispatch(markForDeletion(initialDataUuid));
@@ -5131,15 +5127,8 @@ var __publicField = (obj, key, value) => {
5131
5127
  return void 0;
5132
5128
  }
5133
5129
  store.dispatch(setTokens(tokens));
5134
- return this.client.main.fetchInitialData(true, initialDataUuid).then(() => {
5135
- if (timedOut) {
5136
- return void 0;
5137
- }
5138
- initialDataRequestFinished = true;
5139
- store.dispatch(setLoggedIn(true));
5140
- store.dispatch({ type: "rehydrated/setRehydrated", payload: true });
5141
- return void 0;
5142
- });
5130
+ store.dispatch(setLoggedIn(true));
5131
+ store.dispatch({ type: "rehydrated/setRehydrated", payload: true });
5143
5132
  });
5144
5133
  return Promise.race([timeoutPromise, successPromise]);
5145
5134
  }
@@ -8025,7 +8014,7 @@ var __publicField = (obj, key, value) => {
8025
8014
  }
8026
8015
  }
8027
8016
  async create(name) {
8028
- const result = await this.client.enqueueRequest({
8017
+ return await this.client.enqueueRequest({
8029
8018
  description: "Create organization",
8030
8019
  method: HttpMethod.POST,
8031
8020
  url: "/organizations/",
@@ -8033,8 +8022,6 @@ var __publicField = (obj, key, value) => {
8033
8022
  blockers: [],
8034
8023
  blocks: [`add-org-${name}`, "create-org"]
8035
8024
  });
8036
- await this.client.main.fetchInitialData(true);
8037
- return result;
8038
8025
  }
8039
8026
  async update(organization) {
8040
8027
  const promise = this.client.enqueueRequest({