Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
new_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Prasetya Saputra
new_excelso
Commits
1f2878b3
Commit
1f2878b3
authored
Apr 22, 2020
by
Afid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaaaaaa
parent
882f594f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
globalReducer.js
redux/globalReducer.js
+2
-2
MenuSelection.js
view/MenuSelection.js
+2
-2
No files found.
redux/globalReducer.js
View file @
1f2878b3
...
...
@@ -207,8 +207,8 @@ const rootReducer = (state = globalState, action) => {
}
}
case
ActionType
.
ADD_TO_CHART
:{
let
addedItem
=
action
.
data
.
order_
item
let
is_exist
=
cart_shop
.
find
(
item
=>
addedItem
.
id
==
item
.
id
)
let
addedItem
=
action
.
data
.
item
let
is_exist
=
order_item
.
find
(
item
=>
addedItem
.
id
==
item
.
id
)
if
(
is_exist
)
{
// update
addedItem
.
quantity
+=
1
...
...
view/MenuSelection.js
View file @
1f2878b3
...
...
@@ -184,10 +184,10 @@ const mapDispatchToProps = (dispacth) => {
id
:
data
.
cart_shop
}
}),
addToChart
:
(
order_
item
)
=>
dispacth
({
addToChart
:
(
item
)
=>
dispacth
({
type
:
ActionType
.
ADD_TO_CHART
,
data
:
{
order_item
:
params
.
order_
item
item
:
item
}
}),
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment