Skip to content

Commit

Permalink
Fix undefined usedViewport in otvet theme
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-medvedev-vk committed Sep 13, 2024
1 parent 5145ac9 commit 45de46b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ ${getVarString({ valuesObject: adaptiveValues.auto, prefix: '\t\t' })}
adaptivityState as keyof Adaptive<any>,
);

if (!usedViewport) {
return;

Check warning on line 75 in src/build/compilers/cssVars/declarations/compileBreakpointsCssVarsDeclaration.ts

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement
}

Check warning on line 76 in src/build/compilers/cssVars/declarations/compileBreakpointsCssVarsDeclaration.ts

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🌿 Branch is not covered

Warning! Not covered branch

mediaValues += stripIndent`
@media ${customMedia[`width${capitalize(usedViewport)}`]} {
:root, .vkui--force-auto {
Expand Down

0 comments on commit 45de46b

Please sign in to comment.