uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Avoid using console in code that runs on browser JS-0002
Bug risk
Major
5 occurrences in this check
Unexpected console statement
141        },
142      ];
143      setComponentsData(newComponentsData);
144      console.log(newComponentsData);145    }
146    setEditComponentsItem(undefined);
147    setcomponentVisible(false);
 42    numeric_filters: any[] | undefined,
 43    categorical_filters: any[] | undefined
 44  ) => {
 45    console.log(numeric_filters, categorical_filters); 46    if (numeric_filters !== undefined && categorical_filters === undefined) {
 47      filters = numeric_filters.map((filter) => {
 48        return {
177        onRow={(record, rowIndex) => {
178          return {
179            onClick: (event) => {
180              console.log(event, "heree");181              setCurrentMetric(record);
182            },
183          };
 34      },
 35
 36      onError: (error) => {
 37        console.log(error); 38        toast.error(error.response.data.non_field_errors[0]);
 39      },
 40    }
119            if (rate) {
120              values.metric_type = "rate";
121            }
122            console.log("values", values);123            props.onSave(values);
124            form.resetFields();
125            setRate(false);