chore: Remove console.log left in code and added eslint rule to prevent it happening again
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { pick } from "lodash";
|
||||
import { set, observable } from "mobx";
|
||||
import Logger from "~/utils/Logger";
|
||||
import { getFieldsForModel } from "./decorators/Field";
|
||||
|
||||
export default abstract class BaseModel {
|
||||
@@ -126,7 +127,7 @@ export default abstract class BaseModel {
|
||||
const attributes = this.toAPI();
|
||||
|
||||
if (Object.keys(attributes).length === 0) {
|
||||
console.warn("Checking dirty on model with no @Field decorators");
|
||||
Logger.warn("Checking dirty on model with no @Field decorators");
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user