Skip to content

Commit

Permalink
Fix cancel button was updating settings
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincharles committed Mar 28, 2023
1 parent fdb2e06 commit 6327d61
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file removed src/Media/activity_default.jpg
Binary file not shown.
Binary file removed src/Media/homepagevideo.mp4
Binary file not shown.
4 changes: 2 additions & 2 deletions src/Tools/_framework/Paths/PortfolioActivitySettings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,12 @@ export function PortfolioActivitySettings(){
<Slot3>

{data.isNew ? <SideBySide>
<Button alert value="Cancel" onClick={() => navigate(-1)}/>
<Button alert value="Cancel" onClick={(e) => {e.preventDefault(); navigate(-1)}}/>
<Button type="submit" value="Create" />
</SideBySide>
:
<SideBySide>
<Button alert value="Cancel" onClick={() => navigate(-1)}/>
<Button alert value="Cancel" onClick={(e) => {e.preventDefault(); navigate(-1)}}/>
<Button type="submit" value="Update" />
</SideBySide>
}
Expand Down

0 comments on commit 6327d61

Please sign in to comment.