Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
SemWeb
libview
Commits
48693cb4a0f1
Commit
d68d1bc3
authored
Apr 16, 2021
by
Fabien Amarger
Browse files
fix(ViewWrapper): Do not bug if VIEW_ENTRYPOINT is not defined for the view
parent
3ce6bde5a5ce
Pipeline
#50852
passed with stages
in 1 minute and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/ViewWrapper.ts
View file @
48693cb4
...
...
@@ -21,8 +21,15 @@ export class ViewWrapper {
if
(
this
.
_VIEW_ENTRYPOINT
===
undefined
)
{
fetchViewData
()
.
then
((
viewData
)
=>
{
this
.
_VIEW_ENTRYPOINT
=
viewData
.
VIEW_ENTRYPOINT
;
resolve
(
this
.
_VIEW_ENTRYPOINT
);
if
(
viewData
.
VIEW_ENTRYPOINT
!==
undefined
)
{
this
.
_VIEW_ENTRYPOINT
=
viewData
.
VIEW_ENTRYPOINT
;
resolve
(
this
.
_VIEW_ENTRYPOINT
as
View
);
}
else
{
console
.
error
(
`There is no VIEW_ENTRYPOINT for the view {viewData.name} ({viewData.url})`
);
reject
();
}
})
.
catch
((
e
)
=>
{
console
.
error
(
'
Error fetching view data :
'
,
e
);
...
...
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