Skip to content

Commit

Permalink
chore: apply eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tthvo committed Aug 10, 2024
1 parent 9030816 commit c4171e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/app/RecordingMetadata/BulkEditLabels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface BulkEditLabelsProps {
checkedIndices: number[];
directory?: RecordingDirectory;
directoryRecordings?: ArchivedRecording[];
closePanelFn: () => void;
closePanelFn?: () => void;
}

export const BulkEditLabels: React.FC<BulkEditLabelsProps> = ({
Expand Down Expand Up @@ -125,7 +125,7 @@ export const BulkEditLabels: React.FC<BulkEditLabelsProps> = ({

const handleCancel = React.useCallback(() => {
setCommonLabels(savedCommonLabels);
closePanelFn();
closePanelFn && closePanelFn();
}, [setCommonLabels, savedCommonLabels, closePanelFn]);

const updateCommonLabels = React.useCallback(
Expand Down
11 changes: 2 additions & 9 deletions src/app/RecordingMetadata/RecordingLabelFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,13 @@
import { LoadingView } from '@app/Shared/Components/LoadingView';
import { KeyValue, keyValueToString } from '@app/Shared/Services/api.types';
import { useSubscriptions } from '@app/utils/hooks/useSubscriptions';
import { LABEL_TEXT_MAXWIDTH, portalRoot } from '@app/utils/utils';
import { portalRoot } from '@app/utils/utils';
import { Button, Label, LabelGroup, List, ListItem, Popover, Text, ValidatedOptions } from '@patternfly/react-core';
import { ExclamationCircleIcon, FileIcon, UploadIcon } from '@patternfly/react-icons';
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import { catchError, Observable, of, zip } from 'rxjs';
import {
isValidLabel,
getValidatedOption,
isDuplicateKey,
parseLabelsFromFile,
isValidLabelInput,
getLabelFromInput,
} from './utils';
import { isValidLabel, getValidatedOption, isDuplicateKey, parseLabelsFromFile, getLabelFromInput } from './utils';

export interface RecordingLabelFieldsProps {
labels: KeyValue[];
Expand Down

0 comments on commit c4171e9

Please sign in to comment.