Skip to content

Commit

Permalink
Fixed: case to convert number to string and added optional chaining w…
Browse files Browse the repository at this point in the history
…hen accessing shipmentId(hotwax#285)
  • Loading branch information
R-Sourabh committed May 31, 2024
1 parent a987002 commit 2b1527b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/store/modules/stock/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const actions: ActionTree<StockState, RootState> = {
}

job?.priority && (payload['SERVICE_PRIORITY'] = job.priority.toString())
payload['SERVICE_TIME'] = scheduledTime || state.schedule.scheduledTime.toString()
payload['SERVICE_TIME'] = scheduledTime.toString() || state.schedule.scheduledTime.toString()
job?.sinceId && (payload['sinceId'] = job.sinceId)

try {
Expand Down
2 changes: 1 addition & 1 deletion src/views/ScheduledRestock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<ion-label>
<p class="overline">{{ job.jobId }}</p>
{{ job.jobName }}
<p>{{ job.runTimeData.shipmentId }}</p>
<p>{{ job?.runTimeData?.shipmentId }}</p>
</ion-label>
<ion-button class="date-time-button" @click="changeRunTime(job)">{{ getTime(job.runTime) ? getTime(job.runTime) : 'Select time' }}</ion-button>
<ion-button fill="clear" color="medium" @click="openScheduledRestockPopover($event, job)">
Expand Down

0 comments on commit 2b1527b

Please sign in to comment.