Skip to content

Commit

Permalink
fix(fsi save): fix fsi not accepting values from API
Browse files Browse the repository at this point in the history
  • Loading branch information
b5 committed Jul 26, 2019
1 parent 7613302 commit 8fca975
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/fsi.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,13 @@ func (h *FSIHandlers) saveHandler(w http.ResponseWriter, r *http.Request) {
}

ds := ref.Dataset
// ds.Assign(fds)
ds.Assign(fds)

path := ds.Path
bodyPath := ds.BodyPath

if ds.Transform != nil && ds.Transform.ScriptPath != "" {
ds.Transform.ScriptPath = filepath.Join(path, ds.Transform.ScriptPath)
fmt.Println(ds.Transform)
}
if ds.Viz != nil && ds.Viz.ScriptPath != "" {
ds.Viz.ScriptPath = filepath.Join(path, ds.Viz.ScriptPath)
Expand All @@ -214,9 +213,6 @@ func (h *FSIHandlers) saveHandler(w http.ResponseWriter, r *http.Request) {
ds.PreviousPath = ""
ds.BodyPath = ""

fmt.Println(path, ds.BodyPath)
fmt.Printf("%#v\n", ds)

p := &lib.SaveParams{
Ref: ref.AliasString(),
Dataset: ds,
Expand Down

0 comments on commit 8fca975

Please sign in to comment.