nit: Always set a state
This commit is contained in:
@@ -40,6 +40,8 @@ function Previewer:preview(entry, status)
|
|||||||
if not self.state then
|
if not self.state then
|
||||||
if self._setup_func then
|
if self._setup_func then
|
||||||
self.state = self._setup_func()
|
self.state = self._setup_func()
|
||||||
|
else
|
||||||
|
self.state = {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user