@@ -142,7 +142,7 @@ export class SubscriptionContentsState {
142142 return content . updatedDate . millSecond >= subscription . lastUpdated . millSecond ;
143143 } ) ;
144144 return new SubscriptionContentsState ( {
145- ...this as SubscriptionContentsStateProps ,
145+ ...( this as SubscriptionContentsStateProps ) ,
146146 subscription,
147147 rawContents : contents ,
148148 filteredContents
@@ -159,27 +159,27 @@ export class SubscriptionContentsState {
159159 ) {
160160 if ( payload instanceof FocusContentUseCasePayload ) {
161161 return new SubscriptionContentsState ( {
162- ...this as SubscriptionContentsStateProps ,
162+ ...( this as SubscriptionContentsStateProps ) ,
163163 focusContentId : payload . contentId
164164 } ) ;
165165 } else if ( payload instanceof ScrollToNextContentUseCasePayload ) {
166166 return new SubscriptionContentsState ( {
167- ...this as SubscriptionContentsStateProps ,
167+ ...( this as SubscriptionContentsStateProps ) ,
168168 scrollContentId : payload . subscriptionContentId
169169 } ) ;
170170 } else if ( payload instanceof ScrollToPrevContentUseCasePayload ) {
171171 return new SubscriptionContentsState ( {
172- ...this as SubscriptionContentsStateProps ,
172+ ...( this as SubscriptionContentsStateProps ) ,
173173 scrollContentId : payload . subscriptionContentId
174174 } ) ;
175175 } else if ( payload instanceof StartLoadingPayload ) {
176176 return new SubscriptionContentsState ( {
177- ...this as SubscriptionContentsStateProps ,
177+ ...( this as SubscriptionContentsStateProps ) ,
178178 isContentsLoadings : true
179179 } ) ;
180180 } else if ( payload instanceof FinishLoadingPayload ) {
181181 return new SubscriptionContentsState ( {
182- ...this as SubscriptionContentsStateProps ,
182+ ...( this as SubscriptionContentsStateProps ) ,
183183 isContentsLoadings : false
184184 } ) ;
185185 } else {
0 commit comments