Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
Homework83_M11
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
Ли Джен Сеп
Homework83_M11
Commits
ad612b98
Commit
ad612b98
authored
Dec 20, 2024
by
bekzat kapan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#7
Исправил 3 последних addCase
parent
18c39174
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
requestSlice.ts
frontend/src/features/requestSlice.ts
+2
-2
No files found.
frontend/src/features/requestSlice.ts
View file @
ad612b98
...
...
@@ -68,11 +68,11 @@ const requestSlice = createSlice({
state
.
loading
=
true
;
state
.
error
=
null
;
})
.
addCase
(
en
codeMessage
.
fulfilled
,
(
state
,
action
)
=>
{
.
addCase
(
de
codeMessage
.
fulfilled
,
(
state
,
action
)
=>
{
state
.
loading
=
false
;
state
.
result
=
action
.
payload
;
})
.
addCase
(
en
codeMessage
.
rejected
,
(
state
,
action
)
=>
{
.
addCase
(
de
codeMessage
.
rejected
,
(
state
,
action
)
=>
{
state
.
loading
=
false
;
state
.
error
=
action
.
error
.
message
||
"Error occured"
;
});
...
...
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