MCPcopy Create free account
hub / github.com/CloudOrc/SolidUI / getPrepareSavingModel

Method getPrepareSavingModel

solidui-web/src/utils/ModelManager.ts:230–243  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

228 }
229
230 public getPrepareSavingModel(): SolidModelDataType | undefined {
231 if (isNil(this.model)) {
232 return undefined;
233 }
234 if (!isEmpty(this.model.scenas)) {
235 forEach(this.model.scenas, (item) => {
236 if (!isEmpty(item.pages)) {
237 forEach(item.pages, (page) => unset(page, "selected"));
238 }
239 unset(item, "selected");
240 });
241 }
242 return this.model;
243 }
244
245 public removePage(page: SolidPageDataType): void {
246 const thisPage = find(this.pages, (item) => item.id === page.id);

Callers 1

handleSaveFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected