Skip to content

Commit 6bcd17b

Browse files
authored
Merge pull request #1369 from chhsiao1981/react-reducer-utils-7.1.0
update react-reducer-utils to 7.1.0
2 parents d29f25a + 2711016 commit 6bcd17b

File tree

4 files changed

+28
-31
lines changed

4 files changed

+28
-31
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"react-dropzone": "^14.2.3",
8888
"react-error-boundary": "^4.0.13",
8989
"react-force-graph-2d": "^1.25.5",
90-
"react-reducer-utils": "^7.0.0",
90+
"react-reducer-utils": "^7.1.0",
9191
"react-redux": "^9.1.2",
9292
"react-resizable-panels": "^2.1.4",
9393
"react-responsive": "^10.0.0",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/serverApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type {
1717

1818
console.info("api.serverApi: config:", config);
1919

20-
export const GetFeedPluginInstances = (feedID: number) =>
20+
export const getFeedPluginInstances = (feedID: number) =>
2121
api<PluginInstance[]>({
2222
endpoint: `/${feedID}/plugininstances/`,
2323
method: "get",

src/components/NewLibrary/components/operations/CreateAnalysis.tsx

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
1-
import { useCallback, useContext, useState } from "react";
2-
import { useAppSelector, useAppDispatch } from "../../../../store/hooks";
3-
import { CreateFeedContext } from "../../../CreateFeed/context";
4-
import { AnalysisIcon } from "../../../Icons";
5-
import OperationButton from "./OperationButton";
6-
import { AddNodeContext } from "../../../AddNode/context";
7-
import { PipelineContext } from "../../../PipelinesCopy/context";
8-
9-
import PipelinesCopy from "../../../PipelinesCopy";
10-
11-
import {
12-
createFeeds,
13-
createFeedInstanceWithFS,
14-
} from "../../../CreateFeed/createFeedHelper";
15-
import { type ChRISFeed, Types } from "../../../CreateFeed/types/feed";
16-
171
import {
182
Modal,
193
ModalVariant,
204
Wizard,
215
WizardHeader,
226
WizardStep,
237
} from "@patternfly/react-core";
24-
import BasicInformation from "../../../CreateFeed/BasicInformation";
25-
import withSelectionAlert from "../../../CreateFeed/SelectionAlert";
26-
import { MainRouterContext } from "../../../../routes";
27-
import Review from "../../../CreateFeed/Review";
288
import { useQueryClient } from "@tanstack/react-query";
29-
import type { SelectionPayload } from "../../../../store/cart/types";
30-
import { getFeed, GetFeedPluginInstances } from "../../../../api/serverApi";
31-
import type { Feed, PluginInstance } from "../../../../api/types";
9+
import { useCallback, useContext, useState } from "react";
3210
import { catchError } from "../../../../api/common";
11+
import { getFeed, getFeedPluginInstances } from "../../../../api/serverApi";
12+
import type { Feed, PluginInstance } from "../../../../api/types";
13+
import { MainRouterContext } from "../../../../routes";
14+
import type { SelectionPayload } from "../../../../store/cart/types";
15+
import { useAppDispatch, useAppSelector } from "../../../../store/hooks";
16+
import { AddNodeContext } from "../../../AddNode/context";
17+
import BasicInformation from "../../../CreateFeed/BasicInformation";
18+
import { CreateFeedContext } from "../../../CreateFeed/context";
19+
import {
20+
createFeedInstanceWithFS,
21+
createFeeds,
22+
} from "../../../CreateFeed/createFeedHelper";
23+
import Review from "../../../CreateFeed/Review";
24+
import withSelectionAlert from "../../../CreateFeed/SelectionAlert";
25+
import { type ChRISFeed, Types } from "../../../CreateFeed/types/feed";
26+
import { AnalysisIcon } from "../../../Icons";
27+
import PipelinesCopy from "../../../PipelinesCopy";
28+
import { PipelineContext } from "../../../PipelinesCopy/context";
29+
import OperationButton from "./OperationButton";
3330

3431
type Props = {
3532
handleOperations: (operationKey: string) => void;
@@ -194,7 +191,7 @@ export default (props: Props) => {
194191
};
195192

196193
const feedIDToLastChRISFile = async (feedID: number): Promise<ChRISFeed> => {
197-
const pluginInstances = await GetFeedPluginInstances(feedID);
194+
const pluginInstances = await getFeedPluginInstances(feedID);
198195
if (!pluginInstances.data) {
199196
return { name: "", filename: "", theID: -1, createDateTime: "" };
200197
}

0 commit comments

Comments
 (0)