File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
torchci/components/HudGroupingSettings Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import {
34
34
isDupName ,
35
35
saveTreeData ,
36
36
} from "./mainPageSettingsUtils" ;
37
+ import { tree } from "d3" ;
37
38
38
39
function validRegex ( value : string ) {
39
40
try {
Original file line number Diff line number Diff line change
1
+ import _ from "lodash" ;
2
+ import { getDefaultGroupSettings } from "./defaults" ;
3
+
1
4
export type Group = {
2
5
name : string ;
3
6
regex : RegExp ;
@@ -17,12 +20,12 @@ export function saveTreeData(treeData: Group[]) {
17
20
localStorage . setItem ( "hud_group_settings" , setting ) ;
18
21
}
19
22
20
- export function getStoredTreeData ( ) : Group [ ] {
23
+ export function getStoredTreeData ( ) : Group [ ] {
21
24
try {
22
25
// Try to load saved tree data from localStorage
23
26
const stored = localStorage . getItem ( "hud_group_settings" ) ;
24
27
25
- if ( ! stored ) return [ ] ;
28
+ if ( ! stored ) return getDefaultGroupSettings ( ) ;
26
29
27
30
const parsed = JSON . parse ( stored ) ;
28
31
You can’t perform that action at this time.
0 commit comments