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
This commit is contained in:
Aakansha Doshi 2023-03-14 17:08:23 +05:30 committed by GitHub
parent 023313e92f
commit 6aeb18b784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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, {