Skip to content

Commit

Permalink
Multiple Links Bug Fix (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansrofe authored Apr 17, 2024
1 parent 04c679b commit 5316515
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions widget-src/components/log/DateRangeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const DateRangeForm = ({ changeLog, timestamp, updateChangeState }: DateR
stroke: !!changeLog.state?.updates?.createdDateTmp?.date.er ? COLOR.red : COLOR.grey,
strokeWidth: SPACE.one,
cornerRadius: RADIUS.xs,
padding: { horizontal: PADDING.xs, vertical: PADDING.xs },
padding: { horizontal: PADDING.xxs, vertical: PADDING.xxs },
}}
placeholder={changeLog.state?.updates?.createdDateTmp?.date.val || displayDate(timestamp, 'date')}
value={changeLog.state?.updates?.createdDateTmp?.date.val || displayDate(timestamp, 'date')}
Expand Down Expand Up @@ -219,7 +219,7 @@ export const DateRangeForm = ({ changeLog, timestamp, updateChangeState }: DateR
stroke: !!changeLog.state?.updates?.createdDateTmp?.time.er ? COLOR.red : COLOR.grey,
strokeWidth: SPACE.one,
cornerRadius: RADIUS.xs,
padding: { horizontal: PADDING.xs, vertical: PADDING.xs },
padding: { horizontal: PADDING.xxs, vertical: PADDING.xxs },
}}
placeholder={changeLog.state?.updates?.createdDateTmp?.time.val || displayDate(timestamp, 'time')}
value={changeLog.state?.updates?.createdDateTmp?.time.val || displayDate(timestamp, 'time')}
Expand Down
4 changes: 2 additions & 2 deletions widget-src/components/log/LinkForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ export const LinkForm = ({ changeLog, updateChangeState, setUpdatedDate }: LinkF
showLinkForm: false,
updates: {
...changeLog.state?.updates,
links: !!changeLog.links
? [...changeLog.links, { ...changeLog.state?.updates?.link, key: linkKey }]
links: changeLog.state?.updates?.links
? [...changeLog.state.updates.links, { ...changeLog.state?.updates?.link, key: linkKey }]
: [{ ...changeLog.state?.updates?.link, key: linkKey }],
link: { label: '', url: '', key: '', icon: '' },
linkFormError: {
Expand Down

0 comments on commit 5316515

Please sign in to comment.