Skip to content

Commit 599daf4

Browse files
authored
Merge pull request #440 from STAPLE-verse/433-project-summary
fix a few small format things
2 parents 0a2485c + 1b6711b commit 599daf4

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/pages/projects/[projectId]/summary/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const Summary = () => {
224224
{project.formVersionId ? (
225225
<>
226226
<MetadataDisplay metadata={project.metadata} />
227-
<div className="flex flex-wrap gap-2 justify-start max-w-xl">
227+
<div className="flex flex-wrap gap-2 justify-end max-w-xl">
228228
<DownloadJSON
229229
data={project.metadata}
230230
fileName={project.name}

src/projects/components/MetaDataDisplay.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ export const MetadataDisplay = ({ metadata }) => {
4141
return (
4242
<div className="flex flex-col mt-2">
4343
<strong>Project Form Data:</strong> <br />
44-
{Object.entries(metadata).map(([key, value]) => (
45-
<span key={key}>
46-
{toProperCase(key)}: {renderValue(value)}
47-
<br />
48-
</span>
49-
))}
44+
{Object.entries(metadata)
45+
.filter(([key]) => key !== "_stapleSchema")
46+
.map(([key, value]) => (
47+
<span key={key}>
48+
{toProperCase(key)}: {renderValue(value)}
49+
<br />
50+
</span>
51+
))}
5052
</div>
5153
)
5254
}

0 commit comments

Comments
 (0)