Skip to content

Commit 3c10168

Browse files
authored
Fix annotations when there's no cookie (#38716)
1 parent 3a53683 commit 3c10168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/lib/toggle-annotations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ enum annotationMode {
1212
* @returns The validated mode, or null if leaveNull is true and no valid mode is found.
1313
*/
1414
function validateMode(mode?: string) {
15-
if (mode === annotationMode.Beside || mode === annotationMode.Inline || !mode) return mode
15+
if (mode === annotationMode.Beside || mode === annotationMode.Inline) return mode
1616
// default to Beside
1717
else return annotationMode.Beside
1818
}

0 commit comments

Comments
 (0)