Skip to content

Commit

Permalink
fix: playgroundApp and setupIduxCharts should not be included in url …
Browse files Browse the repository at this point in the history
…data
  • Loading branch information
sallerli1 committed Jul 16, 2024
1 parent 02a65ae commit 1e2618c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/repl-store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ const getInitFiles = (serializedState = '') => {
try {
const res: Record<string, string> = JSON.parse(decodeData(serializedState))
for (const filename of Object.keys(res)) {
const isHidden = filename === playgroundApp
files[filename] = new File(filename, res[filename], isHidden)
if (filename !== playgroundApp) {
files[filename] = new File(filename, res[filename])
}
}
} catch (err) {
console.log(err)
Expand Down Expand Up @@ -313,7 +314,7 @@ export class ReplStore implements Store {

serialize() {
const arr = Object.entries(this.getFiles())
.filter(([file]) => file !== setupIdux && file !== 'import-map.json')
.filter(([file]) => ![playgroundApp, setupIduxCharts, setupIdux, 'import-map.json'].includes(file))
.map(([file, content]) => {
if (file === 'import-map.json') {
try {
Expand Down

0 comments on commit 1e2618c

Please # to comment.