Skip to content

Commit f87b759

Browse files
committed
.
1 parent 43d47ef commit f87b759

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

projects/ngx-notion-cms/src/lib/components/notion-block-code/notion-block-code.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export class NotionBlockCodeComponent implements OnInit {
2626
readonly notionBlock = input.required<NotionBlock>();
2727

2828
ngOnInit(): void {
29-
const notionBlock = this.notionBlock();
3029
const notionBlock = this.notionBlock();
3130
if (notionBlock.properties?.language) {
3231
this.languange = notionBlock.properties.language[0][0];

projects/ngx-notion-cms/src/lib/services/notion.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export class NgxNotionService {
4545
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4646
Object.values(response.data).forEach((key: any) => {
4747
if (key.value) {
48-
console.log(key.value);
4948
blocks.push(key.value);
5049
}
5150
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<ngx-notion-database
22
(itemSelected)="setPageItemSelected($event)"
3-
[dataBaseId]="'e9c95945794e462d92fe07e34d26b368'" />
3+
[dataBaseId]="databaseId()" />

projects/ngx-notion-testbed-app/src/app/views/posts-view/posts-view.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';
22
import { Router, RouterModule } from '@angular/router';
33
import { NotionDatabaseComponent, NotionDatabaseItem } from 'ngx-notion-cms';
44

@@ -14,4 +14,5 @@ export class PostsViewComponent {
1414
setPageItemSelected(id: NotionDatabaseItem['id']) {
1515
this.router.navigate(['posts', id]);
1616
}
17+
databaseId = signal<string>('e9c95945794e462d92fe07e34d26b368');
1718
}

scripts/prerender-routes.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
fileContent += '\n'
1818
fileContent += postPages.map(resp => `/posts/${resp.id}`).join('\n')
1919

20-
console.log('routes.txt created 🚀', fileContent)
2120
fs.writeFileSync('routes.txt', fileContent)
2221

2322
})()

0 commit comments

Comments
 (0)