From 47cbda728e6612431eb18332b84a139d80f5cd58 Mon Sep 17 00:00:00 2001 From: Henrique Caetano de Barros Date: Thu, 8 Jun 2023 14:21:23 -0300 Subject: [PATCH] Tentando rowspan --- server/services/eventos.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/services/eventos.js b/server/services/eventos.js index d2cc955..5dadbca 100644 --- a/server/services/eventos.js +++ b/server/services/eventos.js @@ -28,8 +28,12 @@ _out.println('
`) _out.println(`${dbRecord.getInt("capacidade")}`) _out.println(`${dbRecord.getDouble("preco")}`) - {cat.length > 1 && _out.println(`${dbRecord.getString("categoria")}`)} - {cat.length === 1 && _out.println(`${dbRecord.getString("categoria")}`)} + if(cat.length > 1) { + _out.println(`${dbRecord.getString("categoria")}`) + } + else { + _out.println(`${dbRecord.getString("categoria")}`) + } _out.println('') }