We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5462d65 commit 0cb33c8Copy full SHA for 0cb33c8
lib/settings.js
@@ -856,13 +856,15 @@ ${this.results.reduce((x, y) => {
856
}
857
858
859
- appendToResults(res) {
860
- if (this.nop) {
861
- //Remove nulls and undefined from the results
862
- const results = res.flat(3).filter(r => r)
863
-
864
- this.results = this.results.concat(results)
+ appendToResults (res) {
+ if (!this.nop || !res) {
+ return
865
+
+ const input = (!Array.isArray(res) && this.isObject(res)) ? [res] : res
+ const results = input.flat(3).filter(Boolean)
866
867
+ this.results = this.results.concat(results)
868
869
870
async getReposForTeam(teamslug) {
0 commit comments