From c33cfe95039e3762a31a0695554f16b8ea2bcf3f Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 18 Jul 2021 21:17:03 +1000 Subject: [PATCH] Small rendering improvements --- InvenTree/templates/js/model_renderers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/InvenTree/templates/js/model_renderers.js b/InvenTree/templates/js/model_renderers.js index 257d296eff..ddb4897d8d 100644 --- a/InvenTree/templates/js/model_renderers.js +++ b/InvenTree/templates/js/model_renderers.js @@ -67,9 +67,9 @@ function renderStockItem(name, data, parameters, options) { // Renderer for "StockLocation" model function renderStockLocation(name, data, parameters, options) { - var level = '-'.repeat(data.level); + var level = '- '.repeat(data.level); - var html = `${level} ${data.pathstring}`; + var html = `${level}${data.pathstring}`; if (data.description) { html += ` - ${data.description}`; @@ -152,9 +152,9 @@ function renderOwner(name, data, parameters, options) { // Renderer for "PartCategory" model function renderPartCategory(name, data, parameters, options) { - var level = '-'.repeat(data.level); + var level = '- '.repeat(data.level); - var html = `${level} ${data.pathstring}`; + var html = `${level}${data.pathstring}`; if (data.description) { html += ` - ${data.description}`;