|  | @@ -196,10 +196,10 @@ const AddComponents: React.FC<Props> = ({ type, putInType, accountId, visible, o
 | 
											
												
													
														|  |                                                  num: count,
 |  |                                                  num: count,
 | 
											
												
													
														|  |                                                  defaultParams: {
 |  |                                                  defaultParams: {
 | 
											
												
													
														|  |                                                      materialType: type === 'IMAGE' ? 'image' : 'video',
 |  |                                                      materialType: type === 'IMAGE' ? 'image' : 'video',
 | 
											
												
													
														|  | -                                                    sizeQueries: [
 |  | 
 | 
											
												
													
														|  | 
 |  | +                                                    sizeQueries: Array.isArray(componentData?.restriction) ? componentData?.restriction?.map(item => ({ relation: '=', width: item.width || 0, height: item.height || 0 })) : [
 | 
											
												
													
														|  |                                                          { relation: '=', width: componentData?.restriction.width || 0, height: componentData?.restriction.height || 0 }
 |  |                                                          { relation: '=', width: componentData?.restriction.width || 0, height: componentData?.restriction.height || 0 }
 | 
											
												
													
														|  |                                                      ],
 |  |                                                      ],
 | 
											
												
													
														|  | -                                                    fileSize: (componentData?.restriction.fileSize || 0) * 1024
 |  | 
 | 
											
												
													
														|  | 
 |  | +                                                    fileSize: Array.isArray(componentData?.restriction) ?  (componentData?.restriction?.[0].fileSize || 0) * 1024 : (componentData?.restriction.fileSize || 0) * 1024
 | 
											
												
													
														|  |                                                  }
 |  |                                                  }
 | 
											
												
													
														|  |                                              })
 |  |                                              })
 | 
											
												
													
														|  |                                              setMaterialConfig({
 |  |                                              setMaterialConfig({
 |