Skip to content

Commit

Permalink
Remove text loading remnants
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Nov 18, 2024
1 parent c918ba3 commit 485aadb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/lib/load/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default async function load({ fetch, params, url }: Load) {

let mode: ViewerMode =
(url.searchParams.get("mode") as ViewerMode) ?? "document";
const text = { updated: 0, pages: [] }; // await documents.text(document, fetch);
const asset_url = await documents.assetUrl(document, fetch);

if (!documents.MODES.has(mode)) {
Expand All @@ -34,7 +33,6 @@ export default async function load({ fetch, params, url }: Load) {

return {
document,
text,
asset_url,
mode,
};
Expand Down
3 changes: 1 addition & 2 deletions src/routes/(app)/documents/[id]-[slug]/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { getQuery } from "$lib/utils/search";

/** @type {import('./$types').PageLoad} */
export async function load({ fetch, params, parent, depends, url }) {
const { document, text, asset_url, mode } = await loadDocument({
const { document, asset_url, mode } = await loadDocument({
fetch,
params,
url,
Expand Down Expand Up @@ -47,7 +47,6 @@ export async function load({ fetch, params, parent, depends, url }) {
return {
document,
mode,
text,
asset_url,
action,
pinnedAddons,
Expand Down
3 changes: 1 addition & 2 deletions src/routes/embed/documents/[id]-[slug]/+page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as documents from "$lib/api/documents";

/** @type {import('./$types').PageLoad} */
export async function load({ fetch, url, params, depends }) {
let { document, text, asset_url, mode } = await loadDocument({
let { document, asset_url, mode } = await loadDocument({
fetch,
url,
params,
Expand All @@ -30,7 +30,6 @@ export async function load({ fetch, url, params, depends }) {
return {
document,
mode,
text,
asset_url,
settings,
query,
Expand Down

0 comments on commit 485aadb

Please sign in to comment.