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

Method removeView

solidui-web/src/utils/ModelManager.ts:218–228  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

216 }
217
218 public removeView(id: string): void {
219 if (isNil(this.currentPage)) {
220 return;
221 }
222 const index = this.currentPage.views.findIndex((item) => item.id === id);
223 if (index > -1) {
224 this.currentPage.views.splice(index, 1);
225 }
226 this.viewMap.delete(id);
227 this.views = this.views.filter((item) => item.id !== id);
228 }
229
230 public getPrepareSavingModel(): SolidModelDataType | undefined {
231 if (isNil(this.model)) {

Callers 1

renderFunction · 0.80

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected