File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -143,16 +143,16 @@ export class ProjectDataService implements IProjectDataService {
143
143
assetElement . filename === image . filename && path . basename ( assetElement . directory ) === path . basename ( dirPath )
144
144
) ;
145
145
146
- if ( assetItem ) {
147
- if ( image . size ) {
148
- // size is basically <width>x<height>
149
- const [ width , height ] = image . size . toString ( ) . split ( AssetConstants . sizeDelimiter ) ;
150
- if ( width && height ) {
151
- image . width = + width ;
152
- image . height = + height ;
153
- }
146
+ if ( image . size ) {
147
+ // size is basically <width>x<height>
148
+ const [ width , height ] = image . size . toString ( ) . split ( AssetConstants . sizeDelimiter ) ;
149
+ if ( width && height ) {
150
+ image . width = + width ;
151
+ image . height = + height ;
154
152
}
153
+ }
155
154
155
+ if ( assetItem ) {
156
156
if ( ! image . width || ! image . height ) {
157
157
image . width = assetItem . width ;
158
158
image . height = assetItem . height ;
You can’t perform that action at this time.
0 commit comments