Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
K0K0V0K committed Nov 29, 2024
1 parent 07f516f commit 8f1a939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/koko/yayu/controller/AppController.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public String index(Model model, @RequestParam(defaultValue = "") String order)
new StatisticsGenerator("Application Type", 5, "applicationType", resp).generate());

model.addAttribute("table", new TableGenerator()
.addField("/id", "Id", "linktag#app")
.addField("/id", "Id", "linkTag#app")
.addField("/applicationType", "Type")
.addField("/name")
.addField("/user")
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/koko/yayu/generator/TableGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ private String getValue(JSONObject data, String key) {
Stream.of(split).skip(1),
Stream.of(re)
).toList());
} catch (TemplateModelException e) {
throw new RuntimeException(e);
//TODO
} catch (Exception e) {
throw new RuntimeException("Failed to parse value for key " + key + ", value: " + mapper, e);
}
}
return String.valueOf(re);
Expand Down

0 comments on commit 8f1a939

Please sign in to comment.