Skip to content

Commit

Permalink
Merge pull request #7 from disha1202/#2me4rbb-updated
Browse files Browse the repository at this point in the history
Updated isPreorderBackorderItem method(#2me4rbb)
  • Loading branch information
adityasharma7 authored Jul 25, 2022
2 parents d00f8b3 + 3306588 commit 70d2f9f
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/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const stockModule: Module<StockState, RootState> = {
namespaced: true,
state: {
productsByFacility: {},
preorder: [],
preorder: {},
},
getters,
actions,
Expand Down
2 changes: 1 addition & 1 deletion src/views/OrderDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default defineComponent({
},
isPreorderBackorderItem (item: any) {
const property = item.properties?.find((property: any) => property.name === 'Note')?.value;
return property ? property : " ";
return !!property;
},
timeFromNow (time: string) {
if (time) {
Expand Down

0 comments on commit 70d2f9f

Please sign in to comment.