Skip to content

Commit

Permalink
fix(version-select): version select container fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GaroGabrielyan committed Dec 22, 2023
1 parent a7c3c24 commit e57c363
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import experimental from '../../assets/experimental.svg';
import deprecated from '../../assets/deprecated.svg';
import './index.css';

import libVersions from '../../lib-versions';
import libVersions from '../../lib-versions.json';

const cmpStages = {
'-e': {
Expand Down Expand Up @@ -43,7 +43,7 @@ const SidebarLabelWrapper = ({ item }) => {
useEffect(() => {
if (renderOnce || !document.querySelector('#versions__select')) {
renderOnce = false;
const sidebar = document.querySelector('.os-content');
const sidebar = document.querySelector('.css-194spiq');
const currentVersionRegex = /v\d\.\d\.\d/;
const currentVersion =
window.location.href.match(currentVersionRegex) && window.location.href.match(currentVersionRegex)[0];
Expand Down

0 comments on commit e57c363

Please sign in to comment.