Clean up importers

This commit is contained in:
Gregory Schier
2023-11-10 11:39:17 -08:00
parent 004fef6729
commit 6e5d5fcb95
4 changed files with 20 additions and 32 deletions

View File

@@ -5,7 +5,7 @@ function u(r) {
} catch {
return;
}
if (t(e) && e.yaakSchema === 1) return e.resources;
if (t(e) && e.yaakSchema === 1) return { resources: e.resources };
}
function t(r) {
return Object.prototype.toString.call(r) === '[object Object]';