Skip to content

Commit

Permalink
fix: use with instead of isset to avoid the warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Nov 5, 2022
1 parent c0b0935 commit f965f7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/main/scss/_config.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ $breadcrumb-divider: quote("{{ with $params.breadcrumbDivider }}{{ . }}{{ else }
// Palettes
$preferPalette: '{{ default "blue" $params.palette }}';
$validPalettes: true;
{{- if isset $params "palette" -}}
{{- if eq 0 (len $params.palettes) -}}
{{- with $params.palettes -}}
{{- if eq 0 (len .) -}}
$validPalettes: false;
{{- else -}}
$validPalettes: [];
{{- range $params.palettes -}}
{{- range . -}}
$validPalettes: append($validPalettes, '{{ replace . " " "-" }}');
{{- end -}}
{{- end -}}
Expand Down

0 comments on commit f965f7a

Please sign in to comment.