darabos commited on
Commit
70c66a8
·
1 Parent(s): daba3de

Allow "False" as a valid display.

Browse files
lynxkite-core/src/lynxkite/core/workspace.py CHANGED
@@ -58,7 +58,9 @@ class WorkspaceNode(BaseConfig):
58
 
59
  def publish_result(self, result: ops.Result):
60
  """Sends the result to the frontend. Call this in an executor when the result is available."""
61
- self.data.display = result.display or result.default_display()
 
 
62
  self.data.error = result.error
63
  self.data.status = NodeStatus.done
64
  if hasattr(self, "_crdt"):
 
58
 
59
  def publish_result(self, result: ops.Result):
60
  """Sends the result to the frontend. Call this in an executor when the result is available."""
61
+ self.data.display = result.display
62
+ if self.data.display is None:
63
+ self.data.display = result.default_display()
64
  self.data.error = result.error
65
  self.data.status = NodeStatus.done
66
  if hasattr(self, "_crdt"):