File tree Expand file tree Collapse file tree 3 files changed +10
-24
lines changed
src/renderer/src/pages/paintings Expand file tree Collapse file tree 3 files changed +10
-24
lines changed Original file line number Diff line number Diff line change 374374 "zod" : " ^4.1.5"
375375 },
376376 "resolutions" : {
377+ "@smithy/types" : " 4.7.1" ,
377378 "@codemirror/language" : " 6.11.3" ,
378379 "@codemirror/lint" : " 6.8.5" ,
379380 "@codemirror/view" : " 6.38.1" ,
Original file line number Diff line number Diff line change @@ -96,11 +96,14 @@ const NewApiPage: FC<{ Options: string[] }> = ({ Options }) => {
9696 return editImageFiles
9797 } , [ editImageFiles ] )
9898
99- const updatePaintingState = ( updates : Partial < PaintingAction > ) => {
100- const updatedPainting = { ...painting , providerId : newApiProvider . id , ...updates }
101- setPainting ( updatedPainting )
102- updatePainting ( mode , updatedPainting )
103- }
99+ const updatePaintingState = useCallback (
100+ ( updates : Partial < PaintingAction > ) => {
101+ const updatedPainting = { ...painting , providerId : newApiProvider . id , ...updates }
102+ setPainting ( updatedPainting )
103+ updatePainting ( mode , updatedPainting )
104+ } ,
105+ [ painting , newApiProvider . id , mode , updatePainting ]
106+ )
104107
105108 // ---------------- Model Related Configurations ----------------
106109 // const modelOptions = MODELS.map((m) => ({ label: m.name, value: m.name }))
Original file line number Diff line number Diff line change @@ -9684,25 +9684,7 @@ __metadata:
96849684 languageName: node
96859685 linkType: hard
96869686
9687- "@smithy/types@npm:^4.3.1":
9688- version: 4.3.1
9689- resolution: "@smithy/types@npm:4.3.1"
9690- dependencies:
9691- tslib: "npm:^2.6.2"
9692- checksum: 10c0/8b350562b9ed4ff97465025b4ae77a34bb07b9d47fb6f9781755aac9401b0355a63c2fef307393e2dae3fa0277149dd7d83f5bc2a63d4ad3519ea32fd56b5cda
9693- languageName: node
9694- linkType: hard
9695-
9696- "@smithy/types@npm:^4.3.2":
9697- version: 4.3.2
9698- resolution: "@smithy/types@npm:4.3.2"
9699- dependencies:
9700- tslib: "npm:^2.6.2"
9701- checksum: 10c0/120c5d38f6362c86e6493cce3b9ca9902cd986dab773b39664ff6a95b787c45481f1b1d230f45a6f5ad0c045fb690dc96b51b9ca7b5e9487714a652ed98231f6
9702- languageName: node
9703- linkType: hard
9704-
9705- "@smithy/types@npm:^4.7.1":
9687+ "@smithy/types@npm:4.7.1":
97069688 version: 4.7.1
97079689 resolution: "@smithy/types@npm:4.7.1"
97089690 dependencies:
You can’t perform that action at this time.
0 commit comments