Skip to content

Commit b5d67e3

Browse files
Merge pull request #13382 from jerolimov/OCPBUGS-23779
OCPBUGS-23779: Fix crash when user clicks on Show tooltips
2 parents e447338 + 5e51ffe commit b5d67e3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

frontend/public/components/edit-yaml.jsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,8 @@ const EditYAMLInner = (props) => {
624624
window.dispatchEvent(new Event('sidebar_toggle'));
625625
};
626626

627-
const toggleShowTooltips = (v) => {
628-
props.setShowTooltips(v);
627+
const toggleShowTooltips = (event, checked) => {
628+
props.setShowTooltips(checked);
629629
};
630630

631631
const sanitizeYamlContent = (id, yaml, kind) => {
@@ -679,9 +679,7 @@ const EditYAMLInner = (props) => {
679679
id="showTooltips"
680680
isChecked={showTooltips}
681681
data-checked-state={showTooltips}
682-
onChange={(checked) => {
683-
toggleShowTooltips(checked);
684-
}}
682+
onChange={toggleShowTooltips}
685683
/>
686684
);
687685

0 commit comments

Comments
 (0)