fix(knowledge): initialize contentMap to prevent nil map panic (#422)
This commit is contained in:
@@ -187,7 +187,7 @@ func (s *Slice) GetSliceContent() string {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if item.Type == SliceContentTypeTable {
|
if item.Type == SliceContentTypeTable {
|
||||||
var contentMap map[string]string
|
contentMap := make(map[string]string)
|
||||||
for _, column := range s.RawContent[0].Table.Columns {
|
for _, column := range s.RawContent[0].Table.Columns {
|
||||||
contentMap[column.ColumnName] = column.GetStringValue()
|
contentMap[column.ColumnName] = column.GetStringValue()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user