Skip to content

Commit

Permalink
Merge pull request #13382 from jerolimov/OCPBUGS-23779
Browse files Browse the repository at this point in the history
OCPBUGS-23779: Fix crash when user clicks on Show tooltips
  • Loading branch information
openshift-merge-bot[bot] authored Nov 30, 2023
2 parents e447338 + 5e51ffe commit b5d67e3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frontend/public/components/edit-yaml.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ const EditYAMLInner = (props) => {
window.dispatchEvent(new Event('sidebar_toggle'));
};

const toggleShowTooltips = (v) => {
props.setShowTooltips(v);
const toggleShowTooltips = (event, checked) => {
props.setShowTooltips(checked);
};

const sanitizeYamlContent = (id, yaml, kind) => {
Expand Down Expand Up @@ -679,9 +679,7 @@ const EditYAMLInner = (props) => {
id="showTooltips"
isChecked={showTooltips}
data-checked-state={showTooltips}
onChange={(checked) => {
toggleShowTooltips(checked);
}}
onChange={toggleShowTooltips}
/>
);

Expand Down

0 comments on commit b5d67e3

Please sign in to comment.