Skip to content

Commit

Permalink
don't import Dotnet service in viewer because it breaks the build
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Dec 19, 2024
1 parent c6d8fb9 commit 7422da2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 7422da2

Please sign in to comment.