Просмотр исходного кода

ref(js): Remove duplicate types in organizationStore interface (#38779)

Evan Purkhiser 2 лет назад
Родитель
Сommit
e2346c26c5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      static/app/stores/organizationStore.tsx

+ 2 - 2
static/app/stores/organizationStore.tsx

@@ -51,7 +51,7 @@ const storeConfig: OrganizationStoreDefinition = {
     this.trigger(this.get());
   },
 
-  onUpdate(updatedOrg: Organization, {replace = false}: UpdateOptions = {}) {
+  onUpdate(updatedOrg, {replace = false} = {}) {
     this.loading = false;
     this.error = null;
     this.errorType = null;
@@ -60,7 +60,7 @@ const storeConfig: OrganizationStoreDefinition = {
     this.trigger(this.get());
   },
 
-  onFetchOrgError(err: RequestError) {
+  onFetchOrgError(err) {
     this.organization = null;
     this.errorType = null;