Help With Isue

Here is a video: https://www.youtube.com/watch?v=M7e1VPM7QO0
The Code:

import wixLocation from 'wix-location';
export function dynamicDataset_ready()
{
$w.onReady(function () {
let enabled1 = $w("#pagination1").enabled; true
let visible1 = $w("#pagination1").isVisible; true
let currentpage1 = $w("#pagination1").currentPage;
let totalpages1 = $w("#pagination1").totalPages =2;
});
$w.onReady(function () {
let enabled2 = $w("#pagination2").enabled; true
let visible2 = $w("#pagination2").isVisible; true
let currentpage2 = $w("#pagination2").currentPage;
let totalpages2 = $w("#pagination2").totalPages =2;
});
}
export function pagination1_click(event)
{
$w("#dynamicDataset").getNextDynamicPage()
.then( (next) => { "game-hints/title"
if(next){
wixLocation.to(next);
}
} );
$w("#dynamicDataset").getPreviousDynamicPage()
.then( (prev) => { "game-hints/title"
if(prev){
wixLocation.to(prev);
}
} );
}
export function pagination2_click(event)
{
$w("#dynamicDataset").getNextDynamicPage()
.then( (next) => { "game-hints/title"
if(next){
wixLocation.to(next);
}
} );
$w("#dynamicDataset").getPreviousDynamicPage()
.then( (prev) => { "game-hints/title"
if(prev){
wixLocation.to(prev);
}
} );
}

What are we supposed to be helping you with as you mention no issue and the youtube link is private and can not be viewed,

As for your code, you only need the one onReady page function and all your lets can just be stacked underneath each other, so let enabled1, let enabled2 and so on.

In fact this is a duplicate post of this previous post from a few days ago, so this thread is being closed.
https://www.wix.com/corvid/forum/community-discussion/pagination-in-dynamic-pages