From d8e687a2a0aa9d58067ad5355df577fe2cf4bfc9 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 13 Feb 2023 17:56:10 +0100 Subject: [PATCH] just use model names, no need to replace digits --- app/stores/BaseStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/stores/BaseStore.ts b/app/stores/BaseStore.ts index a9772e3fbb..186f8dd4e1 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).replace(/\d$/, ""); + this.modelName = lowerFirst(model.name); if (!this.apiEndpoint) { this.apiEndpoint = `${this.modelName}s`;