@@ -27,7 +27,7 @@ import type {
2727 SelectableNameKeyPairModel ,
2828} from "@umbraco-workflow/generated" ;
2929import {
30- AdvancedSearchResource ,
30+ AdvancedSearchService ,
3131 AdvancedSearchTypeModel ,
3232 WorkflowStatusModel ,
3333} from "@umbraco-workflow/generated" ;
@@ -71,7 +71,7 @@ export class AdvancedSearchDashboardElement extends UmbElementMixin(
7171
7272 @state ( )
7373 searchModel : TableQueryModel = {
74- handler : AdvancedSearchResource . postAdvancedSearchSearch ,
74+ handler : AdvancedSearchService . postAdvancedSearchSearch ,
7575 meta : {
7676 fuzzy : false ,
7777 } ,
@@ -170,7 +170,7 @@ export class AdvancedSearchDashboardElement extends UmbElementMixin(
170170 async #getData( ) {
171171 const { data } = await tryExecuteAndNotify (
172172 this ,
173- AdvancedSearchResource . getAdvancedSearchContentTypes ( )
173+ AdvancedSearchService . getAdvancedSearchContentTypes ( )
174174 ) ;
175175
176176 data ?. contentTypes ! . forEach ( ( x ) => ( x . selected = true ) ) ;
@@ -399,7 +399,7 @@ export class AdvancedSearchDashboardElement extends UmbElementMixin(
399399 status : Record < string , any >
400400 ) {
401401 status . selected = ! status . selected ;
402- const value = ! property . value ?. length ? [ ] : property . value . split ( "," ) ;
402+ const value = ! ( < any > property . value ) ?. length ? [ ] : ( < string > property . value ) . split ( "," ) ;
403403
404404 if ( status . selected ) {
405405 value . push ( status . value ) ;
@@ -824,7 +824,7 @@ export class AdvancedSearchDashboardElement extends UmbElementMixin(
824824 ${ when (
825825 prop . propertyEditorUiAlias === "checkboxlist" ,
826826 ( ) =>
827- html ` ${ prop . config ?. items . map (
827+ html ` ${ ( < any > prop . config ) ?. items . map (
828828 ( status ) => html `
829829 <uui- checkbox
830830 style= "margin-right:var(--uui-size-5)"
@@ -845,7 +845,7 @@ export class AdvancedSearchDashboardElement extends UmbElementMixin(
845845 html `${ when (
846846 prop . value ,
847847 ( ) => html `<uui- ref- lis t>
848- <uui- ref- node- user .name = ${ prop . value ?. name }
848+ <uui- ref- node- user .name = ${ ( < any > prop . value ) ?. name }
849849 > <uui- action- bar slot= "actions" >
850850 <uui- butto n
851851 label= "Remove"
0 commit comments