Added jobs in production to schedule and error handling. BOD-371

This commit is contained in:
Patrick Fic
2020-08-27 10:26:54 -07:00
parent 5d58b2d9d7
commit 22ce28dddf
10 changed files with 177 additions and 23 deletions

View File

@@ -7,6 +7,7 @@ import {
} from "../../graphql/jobs.queries";
import { LoadingOutlined } from "@ant-design/icons";
import _ from "lodash";
import AlertComponent from "../alert/alert.component";
const { Option } = Select;
@@ -88,6 +89,10 @@ const JobSearchSelect = ({ value, onChange, onBlur, disabled }, ref) => {
: null}
</Select>
{idLoading || loading ? <LoadingOutlined /> : null}
{error ? <AlertComponent message={error.message} type="error" /> : null}
{idError ? (
<AlertComponent message={idError.message} type="error" />
) : null}
</div>
);
};