1 Commits

Author SHA1 Message Date
max 4dd5f633d4 fix: make eslint/typescript happy
📊 Benchmark the Runtime / benchmark (push) Successful in 1m10s
🚀 Lint & Test & Deploy / quality (push) Successful in 2m0s
🚀 Lint & Test & Deploy / test-unit (push) Successful in 32s
🚀 Lint & Test & Deploy / test-e2e (push) Successful in 1m46s
🚀 Lint & Test & Deploy / deploy (push) Successful in 1m48s
2026-05-08 10:32:03 +02:00
3 changed files with 11 additions and 9 deletions
@@ -165,7 +165,7 @@ export class GraphState {
this.edges.delete(edgeId);
}
private _dirtyPositions = new Set<NodeInstance>();
private _dirtyPositions = new SvelteSet<NodeInstance>();
private _positionFlushPending = false;
private _flushPositions() {
@@ -136,13 +136,14 @@ export class RemoteNodeRegistry implements NodeRegistry {
}
async register(id: string, wasmBuffer: ArrayBuffer) {
let wrapper: ReturnType<typeof createWasmWrapper> = null!;
const wrapper = (() => {
try {
wrapper = createWasmWrapper(wasmBuffer);
return createWasmWrapper(wasmBuffer);
} catch (error) {
console.error(`Failed to create node wrapper for node: ${id}`, error);
throw error;
}
})();
const rawDefinition = wrapper.get_definition();
const definition = NodeDefinitionSchema.safeParse(rawDefinition);
+2 -1
View File
@@ -137,7 +137,8 @@ function getValue(input: NodeInput, value?: unknown) {
if (input.type === 'select' && typeof value !== 'number') {
const index = input.options?.indexOf(value as string);
if (index === undefined || index < 0) {
throw new Error(`Unknown value ${value} for select input ${input.label}`);
// Defaultl to the first option
return 0;
}
return index;
}