make type optional when id present

This commit is contained in:
Aakansha Doshi 2023-06-12 11:53:10 +05:30
parent d9e6910df0
commit d76bc7890d
3 changed files with 157 additions and 80 deletions

View file

@ -208,7 +208,7 @@ export default function App({ appTitle, useCustom, customArgs }: AppProps) {
type: "arrow",
x: 300,
y: 150,
start: { type: "rectangle", id: "rect-1" },
start: { id: "rect-1" },
end: { type: "ellipse" },
},
{