@@ -211,9 +211,9 @@ export const usePurchaseTableColumns = ({
211211 // Set screenshot(s) for viewing in modal
212212 item . screenshotSummary
213213 ? onSetScreenshot ( [
214- item . purchaseScreenshot || Transparent1x1WebpPixel ,
215- item . screenshotSummary ,
216- ] )
214+ item . purchaseScreenshot || Transparent1x1WebpPixel ,
215+ item . screenshotSummary ,
216+ ] )
217217 : onSetScreenshot ( item . purchaseScreenshot || Transparent1x1WebpPixel ) ;
218218 } ,
219219 } ,
@@ -252,9 +252,9 @@ export const usePurchaseTableColumns = ({
252252 />
253253 ) ,
254254 // Action triggered when clicking on the publication cell
255- onCellAction : ( item ) => {
255+ onCellAction : ( item : PurchaseStatus ) => {
256256 // Show publication screenshot if it exists
257- if ( item . hasPublication ) {
257+ if ( item . hasPublication && item . publicationScreenshot ) {
258258 onSetScreenshot ( item . publicationScreenshot ) ;
259259 }
260260 } ,
@@ -294,7 +294,7 @@ export const usePurchaseTableColumns = ({
294294 // Actions column - shows available actions based on purchase status
295295 field : "actions" , // Not a real database field, used for actions
296296 label : t ( "actions" ) , // Translated column header
297- render : ( item ) => renderActionColumn ( item ) , // Use the action rendering function
297+ render : ( item : PurchaseStatus ) => renderActionColumn ( item ) , // Use the action rendering function
298298 } ,
299299 ] ,
300300 // Return the empty content component
0 commit comments