Skip to content

Commit

Permalink
Render Attachment before Data When Both Exist in Input
Browse files Browse the repository at this point in the history
Summary:

Test Plan:
  • Loading branch information
Ryan Holinshead committed Mar 4, 2024
1 parent 53933ac commit f2953f5
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,20 @@ function SchemaRenderer({ input, schema, onChangeInput }: SchemaRendererProps) {

return (
<Flex direction="column">
{dataSchema && (
<DataRenderer
schema={dataSchema}
data={data}
onChangeData={onChangeData}
/>
)}
{attachmentsSchema && (
<AttachmentsRenderer
schema={attachmentsSchema}
onChangeAttachments={onChangeAttachments}
attachments={attachments ?? []}
/>
)}
{dataSchema && (
<DataRenderer
schema={dataSchema}
data={data}
onChangeData={onChangeData}
/>
)}
{/* <JSONRenderer properties={restProperties} data={restData}/> */}
</Flex>
);
Expand Down

0 comments on commit f2953f5

Please sign in to comment.