Minor fixes.
This commit is contained in:
@@ -4,12 +4,11 @@ import { Dropdown, List, Menu, Spin } from "antd";
|
||||
import React, { useState } from "react";
|
||||
import InfiniteScroll from "react-infinite-scroller";
|
||||
import { SEARCH_JOBS_PAGINATED } from "../../../graphql/jobs.queries";
|
||||
import ipcTypes from "../../../ipc.types";
|
||||
import ErrorResultAtom from "../../atoms/error-result/error-result.atom";
|
||||
import JobsListItemMolecule from "../../molecules/jobs-list-item/jobs-list-item.molecule";
|
||||
import JobsSearchFieldsMolecule from "../../molecules/jobs-search-fields/jobs-search-fields.molecule";
|
||||
|
||||
const { ipcRenderer } = window;
|
||||
|
||||
|
||||
const limit = 20;
|
||||
export default function JobsTableOrganism() {
|
||||
@@ -36,9 +35,9 @@ export default function JobsTableOrganism() {
|
||||
|
||||
const handleInfiniteOnLoad = (page) => {
|
||||
if (fetchMore) {
|
||||
ipcRenderer.send(ipcTypes.default.app.toMain.track, {
|
||||
event: "FETCH_MORE_JOBS",
|
||||
});
|
||||
// ipcRenderer.send(ipcTypes.default.app.toMain.track, {
|
||||
// event: "FETCH_MORE_JOBS",
|
||||
// });
|
||||
fetchMore({
|
||||
variables: {
|
||||
offset: limit * page,
|
||||
|
||||
@@ -57,9 +57,9 @@ const applicationReducer = (state = INITIAL_STATE, action) => {
|
||||
selectedJobTargetPc: action.payload,
|
||||
};
|
||||
case ApplicationActionTypes.SET_SELECTED_JOB_ID:
|
||||
ipcRenderer.send(ipcTypes.default.app.toMain.track, {
|
||||
event: "SET_SELECTED_JOB",
|
||||
});
|
||||
// ipcRenderer.send(ipcTypes.default.app.toMain.track, {
|
||||
// event: "SET_SELECTED_JOB",
|
||||
// });
|
||||
return { ...state, selectedJobId: action.payload };
|
||||
case ApplicationActionTypes.SET_SETTINGS:
|
||||
return { ...state, settings: { ...state.settings, ...action.payload } };
|
||||
|
||||
Reference in New Issue
Block a user