Skip to content

Commit

Permalink
Fix diff showing for create edits (stashapp#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash authored and Maista6969 committed Jun 24, 2023
1 parent d1ba03b commit 9a48c69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,12 @@ const PerformerForm: FC<PerformerProps> = ({
</Tab>

<Tab eventKey="confirm" title="Confirm" className="mt-3 col-xl-9">
{renderPerformerDetails(newChanges, oldChanges, true, updateAliases)}
{renderPerformerDetails(
newChanges,
oldChanges,
!!performer,
updateAliases
)}
<Row className="my-4">
<Col md={{ span: 8, offset: 4 }}>
<EditNote register={register} error={errors.note} />
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/scenes/sceneForm/SceneForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ const SceneForm: FC<SceneProps> = ({ scene, initial, callback, saving }) => {
</div>
</Tab>
<Tab eventKey="confirm" title="Confirm" className="mt-2 col-xl-9">
{renderSceneDetails(newSceneChanges, oldSceneChanges, true)}
{renderSceneDetails(newSceneChanges, oldSceneChanges, !!scene)}
<Row className="my-4">
<Col md={{ span: 8, offset: 4 }}>
<EditNote register={register} error={errors.note} />
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/studios/studioForm/StudioForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const StudioForm: FC<StudioProps> = ({
</Tab>

<Tab eventKey="confirm" title="Confirm" className="mt-3 col-xl-9">
{renderStudioDetails(newStudioChanges, oldStudioChanges, true)}
{renderStudioDetails(newStudioChanges, oldStudioChanges, !!studio)}
<Row className="my-4">
<Col md={{ span: 8, offset: 4 }}>
<EditNote register={register} error={errors.note} />
Expand Down

0 comments on commit 9a48c69

Please sign in to comment.