From 439ce96c06d0a658b8eeb54c2866cbd09d9a0055 Mon Sep 17 00:00:00 2001 From: Steve Kieffer Date: Sun, 24 Nov 2024 20:45:28 -0500 Subject: [PATCH] Simplify code Conditional operator unnecessary --- client/src/json/editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/json/editor.ts b/client/src/json/editor.ts index 04b4609..dfa2cb0 100644 --- a/client/src/json/editor.ts +++ b/client/src/json/editor.ts @@ -92,7 +92,7 @@ function updateModel() { let json = JSON5.parse(editor.getValue()); // Force PARENT edge coordinates, so that Sprotty can draw the graph correctly. - let props = json?.properties || {}; + let props = json.properties || {}; props["org.eclipse.elk.json.edgeCoords"] = "PARENT"; json.properties = props;