Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Sep 27, 2024
1 parent b67e222 commit a47794a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions graphile-build/graphile-build/src/behavior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,14 +605,11 @@ export class Behavior {
const oldBehavior = behaviorString;
const g = typeof rawG === "string" ? [rawG] : rawG;
if (Array.isArray(g)) {
for (const str of g) {
if (str === "") {
continue;
} else if (behaviorString === "") {
behaviorString = str;
} else {
behaviorString = str + " " + behaviorString;
}
if (g.length === 0) continue;
if (behaviorString === "") {
behaviorString = g.join(" ");
} else {
behaviorString = g.join(" ") + " " + behaviorString;
}
} else if (typeof g === "function") {
const newBehavior: string | string[] = g(
Expand Down

0 comments on commit a47794a

Please sign in to comment.