Skip to content

Commit fc2f5eb

Browse files
authored
docs: fix switch statement for CombinedError (#256)
1 parent b955136 commit fc2f5eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/error.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ switch (response) {
3939
->Belt.Option.getWithDefault("Network error")
4040
->React.string}
4141
</div>
42-
| {graphQLErrors: Some(gqle)} =>
42+
| {graphQLErrors: gqle} when gqle->Belt.Array.length > 0 =>
4343
<div>
4444
{gqle
4545
|> Array.to_list

0 commit comments

Comments
 (0)