Skip to content

Commit

Permalink
Fixed typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
simensma-fresh committed Dec 18, 2024
1 parent 6bd4557 commit b4cd914
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface IBoundingBox {
}
export interface IPermitConditionMeta {
page: number;
role: string;
role?: string;
bounding_box?: IBoundingBox;
}
export interface IPermitCondition {
Expand Down
4 changes: 3 additions & 1 deletion services/common/src/redux/slices/permitServiceSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,11 @@ const permitServiceSlice = createAppSlice({
{
fulfilled: (state, action) => {
const { permit_amendment_id } = action.meta.arg;
const { task_id, task_status } = action.payload;
const { task_id, task_status, permit_amendment_document_guid } = action.payload;
state.extractions[permit_amendment_id] = {
task_id: task_id,
task_status: permitExtractionStatusMap[task_status],
permit_amendment_document_guid
};
},
rejected: (state, action) => {
Expand Down Expand Up @@ -176,6 +177,7 @@ const permitServiceSlice = createAppSlice({
state.extractions[permit_amendment_id] = {
task_status: PermitExtractionStatus.not_started,
task_id: null,
permit_amendment_document_guid: null,
};
},
rejected: (state, action) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import { getDocument } from "@mds/common/redux/utils/actionlessNetworkCalls";
import { ReduxWrapper } from "@mds/common/tests/utils/ReduxWrapper";
import { PreviewPermitAmendmentDocument } from "@/components/mine/Permit/PreviewPermitAmendmentDocument";
import * as MOCK from "@mds/common/tests/mocks/dataMocks";
import { IPermitCondition } from "@mds/common/interfaces";

jest.mock("@mds/common/redux/utils/actionlessNetworkCalls", () => ({
getDocument: jest.fn()
}));

const mockPermitAmendment = MOCK.PERMITS[0].permit_amendments[0];

const mockSelectedCondition = {
const mockSelectedCondition: IPermitCondition = {
...MOCK.PERMITS[0].permit_amendments[0].conditions[0],
permit_condition_guid: "test-condition",
meta: {
Expand Down

0 comments on commit b4cd914

Please sign in to comment.