File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/collections/infra/repositories Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ import {
2121import { CollectionItemType } from '../../domain/models/CollectionItemType'
2222import {
2323 CollectionFeaturedItem ,
24- DvObjectFeaturedItem
24+ DvObjectFeaturedItem ,
25+ FeaturedItemType
2526} from '../../domain/models/CollectionFeaturedItem'
2627import {
2728 domainTypeToApiType ,
@@ -401,7 +402,7 @@ export class CollectionsRepository extends ApiRepository implements ICollections
401402 formData . append ( 'id' , item . id !== undefined ? item . id . toString ( ) : '0' )
402403 formData . append ( 'displayOrder' , item . displayOrder . toString ( ) )
403404
404- if ( item . type === 'custom' ) {
405+ if ( item . type === FeaturedItemType . CUSTOM ) {
405406 // CustomFeaturedItemDTO
406407 formData . append ( 'type' , item . type )
407408 formData . append ( 'content' , item . content )
You can’t perform that action at this time.
0 commit comments