File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
1
2
2
{{ $jsPath := .Get "path" }}
3
- {{ $dimensionsRef := getJSON $jsPath }}
3
+ {{ $dimensionsRef := dict }}
4
+ {{ with resources.Get $jsPath }}
5
+ {{ with .Err }}
6
+ {{ errorf "%s" . }}
7
+ {{ else }}
8
+ {{ $dimensionsRef = . | transform.Unmarshal }}
9
+ {{ end }}
10
+ {{ else }}
11
+ {{ warnf "Unable to get remote resource %q" $jsPath }}
12
+ {{ end }}
13
+
4
14
5
15
< div class ="row flex-xl-nowrap ">
6
16
Original file line number Diff line number Diff line change 1
1
2
2
{{ $jsPath := .Get "path" }}
3
- {{ $metricsRef := getJSON $jsPath }}
3
+ {{ $metricsRef := dict }}
4
+ {{ with resources.Get $jsPath }}
5
+ {{ with .Err }}
6
+ {{ errorf "%s" . }}
7
+ {{ else }}
8
+ {{ $metricsRef = . | transform.Unmarshal }}
9
+ {{ end }}
10
+ {{ else }}
11
+ {{ warnf "Unable to get remote resource %q" $jsPath }}
12
+ {{ end }}
13
+
4
14
5
15
6
16
You can’t perform that action at this time.
0 commit comments