Skip to content

Commit 0e5eac7

Browse files
fix(nodes): add version to iterate and collect (#4469)
## What type of PR is this? (check all applicable) - [ ] Refactor - [ ] Feature - [x] Bug Fix - [ ] Optimization - [ ] Documentation Update - [ ] Community Node Submission ## Description fix(nodes): add version to iterate and collect ## Related Tickets & Documents <!-- For pull requests that relate or close an issue, please include them below. For example having the text: "closes #1234" would connect the current pull request to issue 1234. And when we merge the pull request, Github will automatically close the issue. --> - Related Issue # - Closes # ## QA Instructions, Screenshots, Recordings <!-- Please provide steps on how to test changes, any hardware or software specifications as well as any other pertinent information. --> ## Added/updated tests? - [ ] Yes - [ ] No : _please replace this line with details on why tests have not been included_ ## [optional] Are there any post deployment tasks we need to perform?
2 parents 500f304 + 0a1c5be commit 0e5eac7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

invokeai/app/services/graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class IterateInvocationOutput(BaseInvocationOutput):
182182

183183

184184
# TODO: Fill this out and move to invocations
185-
@invocation("iterate")
185+
@invocation("iterate", version="1.0.0")
186186
class IterateInvocation(BaseInvocation):
187187
"""Iterates over a list of items"""
188188

@@ -203,7 +203,7 @@ class CollectInvocationOutput(BaseInvocationOutput):
203203
)
204204

205205

206-
@invocation("collect")
206+
@invocation("collect", version="1.0.0")
207207
class CollectInvocation(BaseInvocation):
208208
"""Collects values into a collection"""
209209

invokeai/frontend/web/src/features/nodes/util/parseSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const parseSchema = (
7373
const title = schema.title.replace('Invocation', '');
7474
const tags = schema.tags ?? [];
7575
const description = schema.description ?? '';
76-
const version = schema.version ?? '';
76+
const version = schema.version;
7777

7878
const inputs = reduce(
7979
schema.properties,

0 commit comments

Comments
 (0)