From 1d14b49a3d6f0dc739069f343de116ab42178d18 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Mon, 27 Feb 2023 02:13:30 +0000 Subject: [PATCH] fix(#20): add comma to nuxt store template --- .changeset/eleven-turtles-ring.md | 5 +++++ templates/plugin.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/eleven-turtles-ring.md diff --git a/.changeset/eleven-turtles-ring.md b/.changeset/eleven-turtles-ring.md new file mode 100644 index 0000000..3cdda9f --- /dev/null +++ b/.changeset/eleven-turtles-ring.md @@ -0,0 +1,5 @@ +--- +"@druxt-contrib/config-pages": patch +--- + +fix(#20): fixed bug with getters when using multiple config pages. diff --git a/templates/plugin.js b/templates/plugin.js index bdf56d1..cda4e6c 100644 --- a/templates/plugin.js +++ b/templates/plugin.js @@ -28,7 +28,7 @@ export default ({ app, store }, inject) => { getters: { <% for (page of Object.keys(options.configPages)) { %> - <%= page %>: get('<%= page %>') + <%= page %>: get('<%= page %>'), <% } %> } }