Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
SupaJoon committed Mar 1, 2024
1 parent 30e548e commit 1274ec8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ export const useResolveLogURLAndRenderingType = ({
text: false,
});
downloadURL = rawLogURL;
if ((renderingTypeFromQuery || "") in LogRenderingTypes) {
renderingType = renderingTypeFromQuery as LogRenderingTypes;
} else if (!renderingTypeFromQuery) {
if (!renderingTypeFromQuery) {
renderingType = LogRenderingTypes.Default;
} else if (renderingTypeFromQuery in LogRenderingTypes) {
renderingType = renderingTypeFromQuery as LogRenderingTypes;
} else {
renderingType = LogRenderingTypes.Default;
reportError(new Error("Encountered unsupported renderingType"), {
Expand Down

0 comments on commit 1274ec8

Please sign in to comment.