From 36defeca6ec0498dbf65d8e7dba71540475a6df6 Mon Sep 17 00:00:00 2001 From: Pavlo Bilyak <48239848+PavloBilyak@users.noreply.github.com> Date: Mon, 2 Dec 2024 15:50:58 +0200 Subject: [PATCH] do not surround first key with brackets --- .gitignore | 3 ++- app/assets/javascripts/try_api/application.js.erb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 705364c..1033600 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ test/dummy/log/*.log test/dummy/tmp/ test/dummy/.sass-cache .idea/ -Gemfile.lock \ No newline at end of file +Gemfile.lock +node_modules/ diff --git a/app/assets/javascripts/try_api/application.js.erb b/app/assets/javascripts/try_api/application.js.erb index c627c9b..2ec01e3 100644 --- a/app/assets/javascripts/try_api/application.js.erb +++ b/app/assets/javascripts/try_api/application.js.erb @@ -204,7 +204,7 @@ TryApiApp.controller('HomeController', [ if (next == null) { next = ''; } - if (next) { + if (path && next) { next = '[' + next + ']'; } if (path) {