Skip to content

Commit

Permalink
include fixes that Ethan found in a closed PR
Browse files Browse the repository at this point in the history
  • Loading branch information
scytacki committed Sep 17, 2024
1 parent 073a763 commit e757aaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/document/sorted-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface IProps {
secondarySort: SecondarySortType;
}

export const SortedSection: React.FC<IProps> = observer(function SortedDocuments(props: IProps) {
export const SortedSection: React.FC<IProps> = observer(function SortedSection(props: IProps) {
const { docFilter, documentGroup, idx, secondarySort } = props;
const { persistentUI, sortedDocuments } = useStores();
const [showDocuments, setShowDocuments] = useState(false);
Expand Down Expand Up @@ -51,7 +51,7 @@ export const SortedSection: React.FC<IProps> = observer(function SortedDocuments

const renderUngroupedDocument = (doc: IDocumentMetadata) => {
const fullDocument = getDocument(doc.key);
if (!fullDocument) return <div className="loading-spinner"/>;
if (!fullDocument) return <div key={doc.key} className="loading-spinner"/>;

return <DecoratedDocumentThumbnailItem
key={doc.key}
Expand Down

0 comments on commit e757aaa

Please sign in to comment.