Skip to content

Commit

Permalink
fix(juen): empty column not found
Browse files Browse the repository at this point in the history
  • Loading branch information
k8scat committed Mar 23, 2023
1 parent add0ee0 commit 2cc7eac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/juejin/column.go
Expand Up @@ -2,6 +2,7 @@ package juejin

import (
"encoding/json"
"strings"

"github.com/juju/errors"
"github.com/tidwall/gjson"
Expand Down Expand Up @@ -77,6 +78,10 @@ func (c *Client) convertColumnNamesToIDs(names []string) ([]string, error) {
result := make([]string, 0, len(names))
var namesNotFound []string
for _, name := range names {
if strings.TrimSpace(name) == "" {
continue
}

if id, ok := columnMap[name]; ok {
result = append(result, id)
} else {
Expand Down

0 comments on commit 2cc7eac

Please sign in to comment.