diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2021-02-06 11:46:13 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2021-02-07 12:06:24 +0000 |
| commit | 09c3c35c3302f1134cb404a2b7aad2aa7eb3792b (patch) | |
| tree | c094a4033163f96bb454f38e6ef78ea7d1527ee3 /src/layout.js | |
| parent | factor out Discussion component (diff) | |
| download | fedidag-09c3c35c3302f1134cb404a2b7aad2aa7eb3792b.tar.gz fedidag-09c3c35c3302f1134cb404a2b7aad2aa7eb3792b.zip | |
Mastodon semi-compatibility
Diffstat (limited to 'src/layout.js')
| -rw-r--r-- | src/layout.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/layout.js b/src/layout.js index 000d22c..c9c2a4d 100644 --- a/src/layout.js +++ b/src/layout.js @@ -20,6 +20,8 @@ export default class Layout { this.src += '}'; const info = await gv.renderJSONObject(this.src, { format: 'json0' }); + info.objects ||= []; + info.edges ||= []; const [width, height] = info.bb.split(',').map(toNumber).slice(2); const positions = {}; |
