fix: Aviod presentation conversion causing a crash (#19825) (port)

This commit is contained in:
Anton Georgiev 2024-03-18 10:02:33 -04:00 committed by GitHub
parent e4e4b1e304
commit e5812ffd81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -565,6 +565,7 @@ class PresentationUploader extends Component {
commands[newCurrentIndex] = {
$apply: (presentation) => {
if (!presentation) return;
const p = presentation;
if (p) {
p.current = true;