File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 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 {
143143 assetElement . filename === image . filename && path . basename ( assetElement . directory ) === path . basename ( dirPath )
144144 ) ;
145145
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 ;
154152 }
153+ }
155154
155+ if ( assetItem ) {
156156 if ( ! image . width || ! image . height ) {
157157 image . width = assetItem . width ;
158158 image . height = assetItem . height ;
You can’t perform that action at this time.
0 commit comments