Skip to content

Commit 7e3c8a3

Browse files
committed
fix(client): remove thumbnails when not running performance
1 parent ef34b91 commit 7e3c8a3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/client/logic/state.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,20 @@ export const resultColumns = computed(() => {
5050
key: activeTab.value === 0 ? 'report.score' : `report.categories.${categories[activeTab.value - 1]}.score`,
5151
sortable: true,
5252
cols: activeTab.value === 0
53-
? 3
53+
? (categories.includes('performance') ? 3 : 5)
5454
: 1,
5555
component: activeTab.value === 0
5656
? CellScoresOverview
5757
: CellScoreSingle,
5858
},
59-
...(activeTab.value > columns.length - 1 ? [] : columns[activeTab.value]),
59+
...(activeTab.value > columns.length - 1 ? [] : columns[activeTab.value])
60+
.filter((c) => {
61+
// remove screenshot timeline if performance is not present
62+
if (c.key === 'report.audits.screenshot-thumbnails' && !categories.includes('performance')) {
63+
return false
64+
}
65+
return true
66+
}),
6067
{
6168
label: 'Actions',
6269
cols: 1,

0 commit comments

Comments
 (0)