diff --git a/app/stores/BaseStore.ts b/app/stores/BaseStore.ts index 186f8dd4e..a9772e3fb 100644 --- a/app/stores/BaseStore.ts +++ b/app/stores/BaseStore.ts @@ -57,7 +57,7 @@ export default abstract class BaseStore { constructor(rootStore: RootStore, model: Class) { this.rootStore = rootStore; this.model = model; - this.modelName = lowerFirst(model.name); + this.modelName = lowerFirst(model.name).replace(/\d$/, ""); if (!this.apiEndpoint) { this.apiEndpoint = `${this.modelName}s`;