added to clack list for redux

fix wrap on TTbrowser
This commit is contained in:
jfrye122
2023-05-18 16:52:38 -04:00
parent 5e13d2bf3e
commit e3aee0119a
2 changed files with 4 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ import {
selectCurrentTimeTicketJobId, selectCurrentTimeTicketJobId,
} from "../../redux/timetickets/timetickets.selectors"; } from "../../redux/timetickets/timetickets.selectors";
import moment from "moment"; import moment from "moment";
import { EmployeeClockedInList } from "../time-ticket-lists/employee-clockedin-list.component"; import EmployeeClockedInList from "../time-ticket-lists/employee-clockedin-list.component";
import { useNavigation } from "@react-navigation/native"; import { useNavigation } from "@react-navigation/native";
import { INSERT_NEW_TIME_TICKET } from "../../graphql/timetickets.queries"; import { INSERT_NEW_TIME_TICKET } from "../../graphql/timetickets.queries";
@@ -61,9 +61,8 @@ export function ScreenTimeTicketBrowser({
const [currentSJobId, setCurrentSJobId] = useState(null); const [currentSJobId, setCurrentSJobId] = useState(null);
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [error, setError] = useState(null); const [error, setError] = useState(null);
const [insertTimeTicket] = useMutation(INSERT_NEW_TIME_TICKET, { const [insertTimeTicket] = useMutation(INSERT_NEW_TIME_TICKET);
refetchQueries: ["QUERY_ACTIVE_TIME_TICKETS"], const [jobCount, setJobCount] = useState(0);
});
// const { error, data } = useQuery(QUERY_EMPLOYEE_BY_ID, { // const { error, data } = useQuery(QUERY_EMPLOYEE_BY_ID, {
// variables: { id: currentEmployee.technician.id }, // variables: { id: currentEmployee.technician.id },
// }); // });

View File

@@ -11,7 +11,7 @@ const persistConfig = {
key: "root", key: "root",
storage: AsyncStorage, storage: AsyncStorage,
// whitelist: ["photos"], // whitelist: ["photos"],
blacklist: ["user"], blacklist: ["user","employee","timeTickets"],
}; };
const rootReducer = combineReducers({ const rootReducer = combineReducers({