Skip to content

Commit

Permalink
Omit editor ID and tab size
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Jan 1, 2024
1 parent a048b2d commit 6adfa6a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions composables/useProjectStoreFactory.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import collect from 'collect.js';
import download from 'downloadjs';
import { v4 as uuid } from 'uuid';
import { defineStore } from 'pinia';
Expand Down Expand Up @@ -81,8 +82,10 @@ export default function (id, initialValue = null) {
const state = this.clone();

const json = {
settings: omit(state.settings, ['image']),
editors: state.page.editors,
settings: omit(state.settings, 'image'),
editors: collect(state.page.editors)
.map((editor) => omit(editor, ['id', 'tabSize']))
.toArray(),
};

const name = state.tab.name || 'json';
Expand Down

0 comments on commit 6adfa6a

Please sign in to comment.