fix: refresh dimensions when elements loaded from shareable link and blob (#6333)

* fix: refresh dimensions when elements loaded from shareable link

* refresh text dimensions when loading from file

* remove log
pull/6352/head
Aakansha Doshi 2 years ago committed by GitHub
parent 023313e92f
commit 6aeb18b784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -157,7 +157,7 @@ export const loadSceneOrLibraryFromBlob = async (
},
localAppState,
localElements,
{ repairBindings: true },
{ repairBindings: true, refreshDimensions: true },
),
};
} else if (isValidLibrary(data)) {

@ -263,7 +263,7 @@ export const loadScene = async (
await importFromBackend(id, privateKey),
localDataState?.appState,
localDataState?.elements,
{ repairBindings: true },
{ repairBindings: true, refreshDimensions: true },
);
} else {
data = restore(localDataState || null, null, null, {

Loading…
Cancel
Save