Skip to content

Commit

Permalink
fix: getting page builder from modal traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
SocketSomeone committed Jan 5, 2024
1 parent ff78490 commit d0e6224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/necord-pagination.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class NecordPaginationController {

@Modal('necord-pagination-modal/:name')
public async onTraversalModal(@Context() [interaction], @ModalParam('name') name: string) {
const pageBuilder = this.paginationService.get('test');
const pageBuilder = this.paginationService.get(name);
const page = +interaction.fields.getTextInputValue('page');

if (!pageBuilder) throw new PaginationNotFoundException();
Expand Down

0 comments on commit d0e6224

Please sign in to comment.