Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
8eb4982d
Verified
Commit
8eb4982d
authored
4 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix(filter): check against null
parent
a92bf1f8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/components/datatable/datasource/rest.mjs
+5
-5
5 additions, 5 deletions
source/components/datatable/datasource/rest.mjs
with
5 additions
and
5 deletions
source/components/datatable/datasource/rest.mjs
+
5
−
5
View file @
8eb4982d
...
...
@@ -343,7 +343,7 @@ class Rest extends Datasource {
}
/**
*
Fetch
es the data
from
the rest api.
*
Writ
es the data
to
the rest api.
* @return {Promise}
*/
write
()
{
...
...
@@ -426,12 +426,12 @@ function initFilter() {
this
[
filterObserverSymbol
]
=
new
Observer
(()
=>
{
const
query
=
filterControl
.
getOption
(
"
query
"
);
if
(
query
===
undefined
)
{
if
(
query
===
undefined
||
query
===
null
)
{
return
;
}
this
.
setParameters
({
query
:
query
});
this
.
fetch
()
this
.
read
()
.
then
((
response
)
=>
{
if
(
!
(
response
instanceof
Response
))
{
return
Promise
.
reject
(
new
Error
(
"
response is not a Response object
"
));
...
...
@@ -536,7 +536,7 @@ function initAutoInit() {
}
queueMicrotask
(()
=>
{
this
.
fetch
().
catch
(()
=>
{});
this
.
read
().
catch
(()
=>
{});
});
}
...
...
@@ -548,7 +548,7 @@ function initEventHandler() {
entries
.
forEach
((
entry
)
=>
{
if
(
entry
.
isIntersecting
)
{
if
(
entry
.
intersectionRatio
>
0
)
{
this
.
fetch
();
this
.
read
();
}
// only load once
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment