From aece719a074dfdff9d03b5a6118c6cd9b0954fac Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 17 Feb 2023 19:04:50 -0500 Subject: [PATCH] fix: Trim trailing digits from minimized classnames --- 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 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`;