Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Weblecture Player v2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
webcast
Weblecture Player v2
Merge requests
!29
Bump version 2.7.0
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bump version 2.7.0
test_local
into
qa
Overview
0
Commits
1
Pipelines
1
Changes
4
Merged
Rene Fernandez Sanchez
requested to merge
test_local
into
qa
10 months ago
Overview
0
Commits
1
Pipelines
1
Changes
4
Expand
0
0
Merge request reports
Compare
qa
qa (base)
and
latest version
latest version
b75f797b
1 commit,
10 months ago
4 files
+
12
−
20
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
src/hooks/use-data-json/use-data-json.tsx
+
0
−
18
Options
@@ -30,24 +30,6 @@ export default function useDataJson() {
} catch (requestError)
{
const
axiosError
=
requestError
as
AxiosError
;
setError
(
axiosError
);
if
(
axiosError
.
response
)
{
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
// console.log(axiosError.response.data);
// console.log(axiosError.response.status);
// console.log(axiosError.response.headers);
}
else
if
(
axiosError
.
request
)
{
// The request was made but no response was received
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
// http.ClientRequest in node.js
console
.
log
(
axiosError
.
request
);
}
else
{
// Something happened in setting up the request that triggered an Error
console
.
log
(
"
Error
"
,
axiosError
.
message
);
}
// console.log(axiosError.config);
setDataJson
(
undefined
);
}
finally
{
setLoading
(
false
);
Loading