cleanup
This commit is contained in:
@@ -356,7 +356,6 @@ class UmbPartialViewsData extends UmbEntityData<PartialViewResponseModel> {
|
||||
}
|
||||
|
||||
getPartialView(path: string): PartialViewResponseModel | undefined {
|
||||
debugger;
|
||||
return createTextFileItem(this.data.find((item) => item.path === path));
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ const treeHandlers = [
|
||||
|
||||
const detailHandlers: RestHandler<MockedRequest<DefaultBodyType>>[] = [
|
||||
rest.get(umbracoPath('/partial-view'), (req, res, ctx) => {
|
||||
debugger;
|
||||
const path = decodeURIComponent(req.url.searchParams.get('path') ?? '').replace('-cshtml', '.cshtml');
|
||||
if (!path) return res(ctx.status(400));
|
||||
const response = umbPartialViewsData.getPartialView(path);
|
||||
|
||||
Reference in New Issue
Block a user