GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Keep the tab opened after saving · byplus/algorithm-visualizer@d7f006a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/frontend/components/Header
    • index.jsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/frontend/components/Header/index.jsx‎

Copy file name to clipboardExpand all lines: src/frontend/components/Header/index.jsx
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Header extends BaseComponent {
4242

4343
saveGist() {
4444
const { user } = this.props.env;
45-
const { scratchPaper, titles, files, lastFiles } = this.props.current;
45+
const { scratchPaper, titles, files, lastFiles, editingFile } = this.props.current;
4646
const gist = {
4747
description: titles[titles.length - 1],
4848
files: {},
@@ -75,6 +75,7 @@ class Header extends BaseComponent {
7575
.then(refineGist)
7676
.then(newScratchPaper => {
7777
this.props.setScratchPaper(newScratchPaper);
78+
this.props.setEditingFile(newScratchPaper.files.find(file => file.name === editingFile.name));
7879
if (!(scratchPaper && scratchPaper.gistId === newScratchPaper.gistId)) {
7980
this.props.history.push(`/scratch-paper/${newScratchPaper.gistId}`);
8081
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.