Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

[BUG]luckysheet.setSheetDelete()删除最后一页报错 #154

Closed
dream-num opened this issue Nov 2, 2020 · 0 comments
Closed

[BUG]luckysheet.setSheetDelete()删除最后一页报错 #154

dream-num opened this issue Nov 2, 2020 · 0 comments
Assignees

Comments

@dream-num
Copy link
Collaborator

dream-num commented Nov 2, 2020

描述错误
luckysheet.setSheetDelete()报错

重现
重现错误的步骤:
1.确保只有一个sheet页
2.执行luckysheet.setSheetDelete()删除当前sheet页
3.当前页被删除,且报错

Uncaught TypeError: Cannot read property 'data' of undefined
    at Object.changeSheet (sheetmanage.js:1085)

期望的结果
1.最后一个工作表不应该被删除
2.不应该报错,保证删除无效即可

屏幕截图或演示
image

环境:
-操作系统:[例如 Windows,Mac,Linux]
-浏览器 版本号:[例如 Chrome 版本 84.0.4147.105(正式版本) (64 位),Safari,Firefox,Edge]
-Luckysheet版本:[例如 1.0.1,最新]

备注
其他说明

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant