mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
remove console.logs
This commit is contained in:
@@ -202,9 +202,7 @@ export default function BulkActions({ selectedRows, columns, clearSelection }) {
|
||||
};
|
||||
const executeAction = async (key: string, actionType: string) => {
|
||||
const actionColumn = _find(actionColumns, { key });
|
||||
console.log(actionColumn);
|
||||
if (!actionColumn) return;
|
||||
console.log(actionColumn);
|
||||
if (actionColumn.config.isActionScript) {
|
||||
handleActionScript(actionColumn, actionType);
|
||||
} else {
|
||||
|
||||
@@ -82,8 +82,6 @@ export const cloudLogFetcher = (
|
||||
.join(encodeURIComponent("\n"))}`
|
||||
: "");
|
||||
|
||||
console.log(logQueryUrl);
|
||||
|
||||
if (rowyRun)
|
||||
return rowyRun<Record<string, any>[]>({
|
||||
route: { path: logQueryUrl, method: "GET" },
|
||||
|
||||
@@ -96,7 +96,6 @@ export default function ActionFab({
|
||||
} else {
|
||||
result = await handleCallableAction(data);
|
||||
}
|
||||
console.log(result);
|
||||
const { message, success } = result;
|
||||
setIsRunning(false);
|
||||
enqueueSnackbar(JSON.stringify(message), {
|
||||
|
||||
@@ -141,7 +141,6 @@ export default function ConnectTableSelect({
|
||||
params: [algoliaIndex as string],
|
||||
});
|
||||
const { key } = resp;
|
||||
console.log(key);
|
||||
if (key) {
|
||||
const newKey = {
|
||||
key,
|
||||
|
||||
@@ -28,7 +28,6 @@ export const filterOperators: IFilterOperator[] = [
|
||||
];
|
||||
|
||||
export const valueFormatter = (value: any) => {
|
||||
console.log(value);
|
||||
if (value && value.toDate) {
|
||||
return value.toDate();
|
||||
}
|
||||
|
||||
@@ -73,7 +73,6 @@ export const AppProvider: React.FC = ({ children }) => {
|
||||
const token: any = jwt_decode(authToken);
|
||||
if (token && token.exp * 1000 < Date.now()) {
|
||||
// token is expired
|
||||
console.log("token is expired,getting new token");
|
||||
const res = await currentUser.getIdTokenResult(true);
|
||||
setAuthToken(res.token as string);
|
||||
return res.token;
|
||||
@@ -125,7 +124,6 @@ export const AppProvider: React.FC = ({ children }) => {
|
||||
if (currentUser[curr]) return { ...acc, [curr]: currentUser[curr] };
|
||||
return acc;
|
||||
}, {});
|
||||
console.log("create user", userDoc.path, user);
|
||||
db.doc(userDoc.path).set({ user }, { merge: true });
|
||||
}
|
||||
}, [userDoc, currentUser]);
|
||||
|
||||
@@ -100,7 +100,6 @@ const useTableData = () => {
|
||||
tableInitialState
|
||||
);
|
||||
const [rows, rowsDispatch] = useReducer(rowsReducer, []);
|
||||
console.log(rows);
|
||||
/** set collection listener
|
||||
* @param filters
|
||||
* @param limit max number of docs
|
||||
@@ -253,7 +252,6 @@ const useTableData = () => {
|
||||
return rowsDispatch({ type: "delete", rowId });
|
||||
}
|
||||
} catch (error: any) {
|
||||
console.log(error);
|
||||
if (error.code === "permission-denied") {
|
||||
enqueueSnackbar("You do not have the permissions to delete this row.", {
|
||||
variant: "error",
|
||||
|
||||
Reference in New Issue
Block a user