mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-13 22:39:06 +02:00
connection validator
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import type { Connection} from '@xyflow/svelte';
|
||||
import type { Connection } from '@xyflow/svelte';
|
||||
import type { EdgeBase } from '@xyflow/system';
|
||||
|
||||
export function isValidConnection(edge: EdgeBase | Connection) {
|
||||
if (edge.source !== edge.target) {
|
||||
return true;
|
||||
}
|
||||
if (edge.source !== edge.target) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user