mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-25 01:52:45 +03:00
small fix in preview images
This commit is contained in:
parent
11e7e89a4b
commit
9e3ac1c032
@ -143,7 +143,8 @@ export default class SidebarSingleSlateSettings extends React.Component {
|
||||
if (
|
||||
object.type &&
|
||||
object.type.startsWith("image/") &&
|
||||
(!object.size || object.size < SIZE_LIMIT)
|
||||
object.size &&
|
||||
object.size < SIZE_LIMIT
|
||||
) {
|
||||
preview = object.url.replace("https://undefined", "https://");
|
||||
break;
|
||||
|
@ -255,7 +255,8 @@ export default class SlatePage extends React.Component {
|
||||
if (
|
||||
objects[i].type &&
|
||||
objects[i].type.startsWith("image/") &&
|
||||
(!objects[i].size || objects[i].size < SIZE_LIMIT)
|
||||
objects[i].size &&
|
||||
objects[i].size < SIZE_LIMIT
|
||||
) {
|
||||
image = objects[i].url.replace("https://undefined", "https://");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user