cleanup doc.js for a better export interface
Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
@@ -2,8 +2,8 @@ import api from "$lib/api.js";
|
||||
|
||||
export async function load({ fetch }) {
|
||||
let projects = await api.projects(fetch);
|
||||
|
||||
return {
|
||||
projects: null === projects ? [] : projects,
|
||||
error: "",
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user