codica2 / administrate-field-jsonb

A plugin to show and edit JSON objects within Administrate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Displays 2 empty lines when JSON is empty object

sedubois opened this issue · comments

Say if I have this JSON data: ["editor"], then it displays fine on show view:

Screenshot 2019-10-28 at 20 38 08

But if it is an empty array like [], 2 empty lines are displayed:

Screenshot 2019-10-28 at 20 38 19

Hello, @sedubois I also found this issue at the project where I use this gem, I'm going to fix the issue on the weekends. Or feel free to submit the PR. Thanks

@sedubois fixed at 0.4.1

#8