From 7422da2f15656ad4d9954428aaec2a3856f38fee Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Thu, 19 Dec 2024 16:02:31 +0700 Subject: [PATCH] don't import Dotnet service in viewer because it breaks the build --- .../project/[project_code]/viewer/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/(authenticated)/project/[project_code]/viewer/+page.svelte b/frontend/src/routes/(authenticated)/project/[project_code]/viewer/+page.svelte index 9da1543a0..426dd9bf4 100644 --- a/frontend/src/routes/(authenticated)/project/[project_code]/viewer/+page.svelte +++ b/frontend/src/routes/(authenticated)/project/[project_code]/viewer/+page.svelte @@ -4,7 +4,6 @@ import 'viewer/service-declaration'; import type {PageData} from './$types'; import t from '$lib/i18n'; - import {DotnetService} from '$lib/dotnet-types'; export let data: PageData; $: project = data.project; @@ -14,7 +13,8 @@ $: { if (serviceProvider) { let localService = new LfClassicLexboxApi($project.code); - serviceProvider.setService(DotnetService.MiniLcmApi, localService); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + serviceProvider.setService('MiniLcmApi' as any, localService); service = localService; } }