Skip to content

Commit

Permalink
fix home sampletable height and remove ph_id col from standardizer modal
Browse files Browse the repository at this point in the history
  • Loading branch information
sanghoonio committed Sep 17, 2024
1 parent e8937fd commit 5f2167c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 4 additions & 2 deletions web/src/components/modals/standardize-metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export const StandardizeMetadataModal = (props: Props) => {
setResetStandardizedData,
} = props;

const { data: schemaOptions} = useStandardizerSchemas(namespace);
const PH_ID_COL = 'ph_id';

const { data: schemaOptions } = useStandardizerSchemas(namespace);

const tabDataRaw = newSamples;
const tabData = tabDataRaw[0]
Expand Down Expand Up @@ -265,7 +267,7 @@ export const StandardizeMetadataModal = (props: Props) => {
</div>

<form>
{Object.keys(standardizedData).map((key, index) => (
{Object.keys(standardizedData).filter(key => key !== 'ph_id').map((key, index) => (
<StandardizerTable
columnKey={key}
columnIndex={index}
Expand Down
3 changes: 0 additions & 3 deletions web/src/components/project/project-stars.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ export const ProjectStars: FC<Props> = (props) => {

const [localStarred, setLocalStarred] = useState(isStarred);

console.log('isStarred ' + isStarred)
console.log('localStarred ' + localStarred)

return (
<Button
disabled={isAddingStar || isRemovingStar}
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function Home() {
transition={{ duration: 0.5 }}
className="landing-table shadow"
>
<SampleTable minRows={9} data={sampleListToArrays(exampleSamples?.items || [])} />
<SampleTable height={9 * 23 + 50} minRows={9} data={sampleListToArrays(exampleSamples?.items || [])} />
</motion.div>
</div>
</div>
Expand Down

0 comments on commit 5f2167c

Please sign in to comment.