From 06d4011a3e81116934bc331bd2afeaf94fc32dc6 Mon Sep 17 00:00:00 2001 From: Yamaguchi Date: Tue, 19 Mar 2024 01:52:32 +0900 Subject: [PATCH] Fix prettier warnings --- backend/actions/color_list.js | 4 +--- frontend/src/app/colors/colors.page.html | 5 ++++- frontend/src/app/colors/colors.page.ts | 7 ++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/backend/actions/color_list.js b/backend/actions/color_list.js index 36e01a5..52910f2 100644 --- a/backend/actions/color_list.js +++ b/backend/actions/color_list.js @@ -19,9 +19,7 @@ app.get('/api/colors', async (req, res) => { console.log(colors); res.json({ colors: colors }); } catch (err) { - logger.error( - `Error retrieving colors. Error Message - ${err.message}` - ); + logger.error(`Error retrieving colors. Error Message - ${err.message}`); res.status(500).send(`Error Retrieving Blocks`); } }); diff --git a/frontend/src/app/colors/colors.page.html b/frontend/src/app/colors/colors.page.html index df11dd3..6f71b7f 100644 --- a/frontend/src/app/colors/colors.page.html +++ b/frontend/src/app/colors/colors.page.html @@ -10,7 +10,10 @@

Colors

COLOR ID LATEST USED BLOCK - + { - this.colors = this.colors.concat(data["colors"]); - this.lastSeenColorId = data["colors"][data["colors"].length - 1][0]; + this.colors = this.colors.concat(data['colors']); + this.lastSeenColorId = data['colors'][data['colors'].length - 1][0]; }, err => { console.log(err);