fixed calling property of undefined value

This commit is contained in:
Martina 2021-06-14 18:13:48 -07:00
parent 387045082c
commit 573cb9a5fa

View File

@ -112,7 +112,7 @@ export default async (req, res) => {
added = addedToSlate;
}
if (slate.isPublic) {
if (slate?.isPublic) {
SearchManager.updateFile(createdFiles, "ADD");
}
ViewerManager.hydratePartial(id, { library: true, slates: slate ? true : false });