Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(webv2): preserve contract caller semantics

joshistoastc05087e9d4d9
diff --git a/invokeai/frontend/webv2/scripts/write-contract-caller-matrix.mjs b/invokeai/frontend/webv2/scripts/write-contract-caller-matrix.mjs
index e2a3247a76..959f071b13 100644
--- a/invokeai/frontend/webv2/scripts/write-contract-caller-matrix.mjs
+++ b/invokeai/frontend/webv2/scripts/write-contract-caller-matrix.mjs
@@ -117,7 +117,9 @@ try {
if (!target || !callerRecords.has(target)) {
continue;
}
- allCallerRecords.get(target).add(path);
+ if (reference.symbols.length > 0) {
+ allCallerRecords.get(target).add(path);
+ }
for (const symbol of reference.symbols) {
if (symbol !== 'default' && symbol !== '*') {
addCaller(target, symbol, path);