Skip to content

Commit ef764a1

Browse files
committed
added check to data.list() in case of no ids
1 parent fa2438d commit ef764a1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/data.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class Content extends Lib {
2020
if(typeof name==='undefined')
2121
throw this.throwError('data.list()','a name')
2222

23-
params.ids = this.parent.utils.makeCSV(params.ids)
23+
if(params.ids)
24+
params.ids = this.parent.utils.makeCSV(params.ids)
2425

2526
return this.req(`/${name}`, params)
2627
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)