Skip to content

Commit b6bb4cf

Browse files
committed
修复创建文章时,初始image为空时会报错的问题
1 parent 52689a8 commit b6bb4cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Crop.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class Crop extends File
2828

2929
protected function preview()
3030
{
31-
return $this->objectUrl($this->value());
31+
if(!is_null($this->value()))
32+
return $this->objectUrl($this->value());
3233
}
3334

3435
/**

0 commit comments

Comments
 (0)