From 6ffa0782aca0f857fb3ea59d07e1e8429d6db792 Mon Sep 17 00:00:00 2001 From: mark5231 <91494227+mark5231@users.noreply.github.com> Date: Thu, 5 Jan 2023 09:28:57 -0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Bill Thornton --- src/controllers/itemDetails/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/controllers/itemDetails/index.js b/src/controllers/itemDetails/index.js index e4bd85c1bc..ae946816de 100644 --- a/src/controllers/itemDetails/index.js +++ b/src/controllers/itemDetails/index.js @@ -1051,11 +1051,7 @@ function renderStudio(page, item, context) { studiosValue.innerHTML = html; const studiosGroup = page.querySelector('.studiosGroup'); - if (studios.length) { - studiosGroup.classList.remove('hide'); - } else { - studiosGroup.classList.add('hide'); - } + studiosGroup.classList.toggle('hide', !studios.length); } function renderMiscInfo(page, item) {