Skip to content

Commit

Permalink
FIX linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jun 23, 2020
1 parent 669d343 commit 01d58ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ui/src/components/sidebar/RefIndicator.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { document, window } from 'global';
import React, { FunctionComponent, useMemo, ComponentProps, useCallback, forwardRef } from 'react';

import { Icons, WithTooltip, Spaced, TooltipLinkList } from '@storybook/components';
Expand Down Expand Up @@ -238,11 +239,10 @@ const LoginRequiredMessage: FunctionComponent<RefType> = ({ loginUrl, id }) => {
// poll for window to close
const timer = setInterval(() => {
if (!childWindow) {
// logger.error('unable to access loginUrl window');
clearInterval(timer);
} else if (childWindow.closed) {
clearInterval(timer);
window.document.location.reload();
document.location.reload();
}
}, 1000);
}, []);
Expand Down

0 comments on commit 01d58ee

Please sign in to comment.