mirror of
https://github.com/slynn1324/tinypin.git
synced 2026-07-17 16:34:46 +00:00
fix error
This commit is contained in:
parent
53d1e0f83f
commit
7c72cbea5a
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ app.addComponent('pinZoomModal', (store) => { return new Reef("#pinZoomModal", {
|
|||
let isFirst = true;
|
||||
let isLast = true;
|
||||
|
||||
if ( data.pinZoomModal.pin ){
|
||||
if ( data.pinZoomModal.pin && data.board ){
|
||||
let idx = getPinIndexById(data.pinZoomModal.pin.id);
|
||||
isFirst = idx == 0;
|
||||
isLast = idx == (data.board.pins.length - 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue