fix: extract libraries array from API response in editor
Some checks failed
Proyectos/simplenote-web/pipeline/head There was a failure building this commit
Some checks failed
Proyectos/simplenote-web/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -18,7 +18,8 @@ export async function renderEditor(app) {
|
||||
}
|
||||
|
||||
try {
|
||||
libraries = await api.getLibraries();
|
||||
const libResult = await api.getLibraries();
|
||||
libraries = libResult.libraries || [];
|
||||
} catch (e) {}
|
||||
|
||||
const isNew = !id;
|
||||
|
||||
Reference in New Issue
Block a user