RubyGems
npm
Organizations
Log in
Sign up
npm
@kizmann/nano-ui
Versions diffs
0.7.23 → 0.7.24
@kizmann/nano-ui 0.7.23 → 0.7.24
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
package/package.json
+1
-1
package/src/preview/src/preview/preview.js
+4
-0
package/package.json
CHANGED
Viewed
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@kizmann/nano-ui",
3
-
"version": "0.7.
23
",
3
+
"version": "0.7.
24
",
4
4
"license": "MIT",
5
5
"private": false,
6
6
"author": "Eduard Kizmann <kizmann@protonmail.ch>",
package/src/preview/src/preview/preview.js
CHANGED
Viewed
@@ -137,6 +137,10 @@ export default {
137
137
let file = Obj.get(this.tempThumb, 'name',
138
138
this.tempThumb);
139
139
140
+
if ( Any.isEmpty(file) ) {
141
+
return fallback;
142
+
}
143
+
140
144
let extension = file.replace(/^.*?\.([^.?]+)(\?.*?)?$/,
141
145
'$1');
142
146