Skip to content

Commit

Permalink
Merge pull request #534 from trheyi/main
Browse files Browse the repository at this point in the history
[_]
  • Loading branch information
trheyi authored Dec 18, 2023
2 parents 14dc514 + 35cd3f7 commit 625cd2b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sui/core/editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,17 @@ func (page *Page) EditorRender() (*ResponseEditorRender, error) {

// Render the page
request := NewRequestMock(page.Config.Mock)
link := page.Link(request)
if request.URL.Path == "" {
request.URL.Path = link
}

// Set Default Sid
if request.Sid == "" {
request.Sid, _ = page.Sid()
}

link := page.Link(request)
if request.URL.Path == "" {
request.URL.Path = link
}

// Render tools
// res.Scripts = append(res.Scripts, filepath.Join("@assets", "__render.js"))
// res.Styles = append(res.Styles, filepath.Join("@assets", "__render.css"))
Expand Down

0 comments on commit 625cd2b

Please sign in to comment.