From f011a67b9fb55aa0b9470f0eaee831034bb52d31 Mon Sep 17 00:00:00 2001 From: Jon Palmer <328224+jonspalmer@users.noreply.github.com> Date: Sat, 7 Aug 2021 17:50:58 -0700 Subject: [PATCH] array configs are object so parse not split the value --- examples/server-kitchen-sink/views/addons/controls/all.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/server-kitchen-sink/views/addons/controls/all.pug b/examples/server-kitchen-sink/views/addons/controls/all.pug index 50fb62d4c276..5e2207c88288 100644 --- a/examples/server-kitchen-sink/views/addons/controls/all.pug +++ b/examples/server-kitchen-sink/views/addons/controls/all.pug @@ -5,8 +5,8 @@ - dateOptions = { year: 'numeric', month: 'long', day: 'numeric', timeZone: 'UTC' }; - style = `border: 2px dotted ${colour}; padding: 8px 22px; border-radius: 8px`; - today = new Date(today); -- items = items.split(','); -- other = JSON.parse(other) +- items = JSON.parse(tems); +- other = JSON.parse(other); div(style=`${style}`) h1 My name is #{name},