Skip to content

Commit 740879a

Browse files
committed
stylign fixes
1 parent 67044ff commit 740879a

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

pages/columns/+Page.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ function ColumnGroup({ data, linkPrefix, columnInput, shouldFilter }) {
140140
"h2.column-group-name",
141141
name + " (Group #" + filteredColumns[0].col_group_id + ")"
142142
),
143-
])
144-
143+
]),
145144
]),
146145
h("div.column-list", [
147146
h("table.column-table", [

pages/columns/groups/+data.ts

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
import { fetchAPIData } from "~/_utils/fetch-helpers";
22

33
export async function data() {
4-
const res = await fetchAPIData(`/columns`,{ all: true });
4+
const res = await fetchAPIData(`/columns`, { all: true });
55

6-
const grouped = {};
6+
const grouped = {};
77

8-
for (const item of res) {
9-
const key = item.col_group_id;
8+
for (const item of res) {
9+
const key = item.col_group_id;
1010

11-
if (!grouped[key]) {
12-
grouped[key] = {
13-
name: item.col_group,
14-
id: item.col_group_id,
15-
columns: []
16-
};
17-
}
18-
19-
grouped[key].columns.push(item);
11+
if (!grouped[key]) {
12+
grouped[key] = {
13+
name: item.col_group,
14+
id: item.col_group_id,
15+
columns: [],
16+
};
2017
}
2118

22-
const columnGroups = Object.values(grouped);
23-
19+
grouped[key].columns.push(item);
20+
}
2421

22+
const columnGroups = Object.values(grouped);
2523

2624
return {
2725
columnGroups,

0 commit comments

Comments
 (0)