Skip to content

Commit

Permalink
chore: fix nil folder results
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Sep 12, 2024
1 parent ceb332c commit 926ac73
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion api/context/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ func (ctx *Context) GetContextualFunctions() map[string]any {
if result, ok := ctx.cache["last_result"]; ok {
return result
}
var status map[string]any
status := map[string]any{
"status": "",
"invalid": false,
"createdAt": nil,
"duration": 0,
"message": "",
"error": "",
"results": make(map[string]any),
}

if checkID == "" {
return status
Expand Down

0 comments on commit 926ac73

Please sign in to comment.