mirror of
https://github.com/rowyio/rowy.git
synced 2026-09-03 04:30:54 +02:00
remove console logs
This commit is contained in:
@@ -15,7 +15,6 @@ export default function FiretableUser({ column, value }: CustomCellProps) {
|
||||
if (!value || !value.displayName || !value.timestamp) return <div />;
|
||||
|
||||
const updatedAt = dateFns.format(value.timestamp.toDate(), "hh:mma ddMMM");
|
||||
console.log(updatedAt, value.timestamp);
|
||||
return (
|
||||
<Tooltip title={updatedAt}>
|
||||
<Chip
|
||||
|
||||
@@ -63,7 +63,6 @@ export default function Table({ collection, filters }: ITableProps) {
|
||||
|
||||
useEffect(() => {
|
||||
if (tableActions && tableState && tableState.tablePath !== collection) {
|
||||
console.log("setting table");
|
||||
tableActions.table.set(collection, filters);
|
||||
if (sideDrawerRef?.current) sideDrawerRef.current.setCell!(null);
|
||||
}
|
||||
|
||||
@@ -56,7 +56,6 @@ const tableInitialState = {
|
||||
const useTable = (initialOverrides: any) => {
|
||||
const snack = useContext(SnackContext);
|
||||
const [perviousConfigs, setPerviousConfigs] = useTableFilterHistory();
|
||||
console.log({ perviousConfigs });
|
||||
const [tableState, tableDispatch] = useReducer(tableReducer, {
|
||||
...tableInitialState,
|
||||
...initialOverrides,
|
||||
@@ -258,7 +257,6 @@ const useTable = (initialOverrides: any) => {
|
||||
*/
|
||||
const addRow = async (data?: any) => {
|
||||
const valuesFromFilter = tableState.filters.reduce(filterReducer, {});
|
||||
console.log(valuesFromFilter);
|
||||
const { rows, orderBy, path } = tableState;
|
||||
|
||||
const docData = {
|
||||
@@ -267,14 +265,12 @@ const useTable = (initialOverrides: any) => {
|
||||
updatedAt: serverTimestamp(),
|
||||
...data,
|
||||
};
|
||||
console.log(docData);
|
||||
try {
|
||||
if (rows.length === 0) {
|
||||
await db.collection(path).add(docData);
|
||||
} else {
|
||||
const firstId = rows[0].id;
|
||||
const newId = generateSmallerId(firstId);
|
||||
console.log(newId);
|
||||
await db
|
||||
.collection(path)
|
||||
.doc(newId)
|
||||
|
||||
Reference in New Issue
Block a user