Skip to content

Commit

Permalink
inline filename
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Jun 24, 2024
1 parent 5346824 commit 6d898b2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/ReductionHistory.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// React components
import React, { useState, useEffect, useCallback } from 'react';
import { useParams, useHistory } from 'react-router-dom';
import React, { useCallback, useEffect, useState } from 'react';
import { useHistory, useParams } from 'react-router-dom';

// Material UI components
import {
Expand All @@ -12,8 +12,8 @@ import {
Icon,
IconButton,
InputLabel,
Paper,
MenuItem,
Paper,
Select,
SelectChangeEvent,
Table,
Expand Down Expand Up @@ -288,8 +288,7 @@ function Row({ reduction, index }: { reduction: Reduction; index: number }): JSX
if (typeof fileNameWithExtension === 'undefined') {
return '';
}
const fileName = fileNameWithExtension.split('.')[0];
return fileName;
return fileNameWithExtension.split('.')[0];
};

const parseReductionOutputs = (): JSX.Element | JSX.Element[] | undefined => {
Expand Down

0 comments on commit 6d898b2

Please sign in to comment.