File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
web/libs/editor/src/components Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -460,7 +460,7 @@ const PixelGridLayer = observer(({ item }) => {
460460 const ZOOM_THRESHOLD = 20 ;
461461
462462 const visible = item . zoomScale > ZOOM_THRESHOLD ;
463- const { naturalWidth, naturalHeight } = item . currentImageEntity ;
463+ const { naturalWidth, naturalHeight } = item . currentImageEntity ?? { } ;
464464 const { stageWidth, stageHeight } = item ;
465465 const imageSmallerThanStage = naturalWidth < stageWidth || naturalHeight < stageHeight ;
466466
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ interface RelationsListProps {
3232const RelationsList : FC < RelationsListProps > = observer ( ( { relations } ) => {
3333 return (
3434 < >
35- { relations . map ( ( rel , i ) => {
36- return < RelationItem key = { i } relation = { rel } /> ;
35+ { relations . map ( ( rel ) => {
36+ return < RelationItem key = { rel . id } relation = { rel } /> ;
3737 } ) }
3838 </ >
3939 ) ;
You can’t perform that action at this time.
0 commit comments