Skip to content

Commit 6774f98

Browse files
committed
Fix const warning
1 parent 80ce07f commit 6774f98

File tree

1 file changed

+1
-15
lines changed
  • packages/app/src/app/pages/Sandbox

1 file changed

+1
-15
lines changed

packages/app/src/app/pages/Sandbox/index.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,7 @@ class SandboxPage extends React.Component {
4545
}
4646

4747
fetchSandbox = () => {
48-
let id = this.props.match.params.id;
49-
50-
// /**
51-
// * We do this as an optimization. Most urls end with the shortid (5 chars), if we can extract that
52-
// * we try to do so. This check is also handled on the server, but this way the sequence of `sandboxChanged`
53-
// * won't try to fetch the sandbox twice if it doesn't find the "id" in the state.
54-
// */
55-
// const split = id.split('-');
56-
// if (
57-
// split.length > 1 &&
58-
// !id.startsWith('github') &&
59-
// split[split.length - 1].length === 5
60-
// ) {
61-
// id = split.pop();
62-
// }
48+
const id = this.props.match.params.id;
6349

6450
this.props.signals.editor.sandboxChanged({ id });
6551
};

0 commit comments

Comments
 (0)