mirror of
https://github.com/outline/outline.git
synced 2026-11-25 07:04:37 +03:00
fix: Trim trailing digits from minimized classnames
This commit is contained in:
1 parent
2cd5d0e624
commit
aece719a07
1 file changed
+1
-1
@@ -57,7 +57,7 @@ export default abstract class BaseStore<T extends BaseModel> {
|
||||
constructor(rootStore: RootStore, model: Class<T>) {
|
||||
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`;
|
||||
|
||||
Reference in new issue
Block a user