This is an automated email from the ASF dual-hosted git repository.

pdallig pushed a commit to branch branch-0.10
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/branch-0.10 by this push:
     new 26ccf5f  [ZEPPELIN-5601]Make the page update after excuse the clear 
output paragraph action
26ccf5f is described below

commit 26ccf5f260f0f775418e383926ea540f281b19d5
Author: jasmine-song <791259...@qq.com>
AuthorDate: Thu Dec 16 14:37:01 2021 +0800

    [ZEPPELIN-5601]Make the page update after excuse the clear output paragraph 
action
    
    ### What is this PR for?
    The page is not updated after excuse action of clear output paragraph, 
because the backend don't responese  the column of results when frented send 
the websocket command PARAGRAPH_CLEAR_OUTPUT. So add the initial value  make 
sure enter reload logical
    
    ### What type of PR is it?
    Bug Fix
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/ZEPPELIN-5601
    
    ### How should this be tested?
    I have problems with CI, but I am able to run them successfully locally.
    
    ### Screenshots (if appropriate)
    
![image](https://user-images.githubusercontent.com/44150070/144569383-43cea4c0-6356-4d4b-b858-553dd01de65c.png)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No
    
    Author: jasmine-song <791259...@qq.com>
    
    Closes #4273 from jasmine-song/master and squashes the following commits:
    
    16a33ef03 [jasmine-song] delete invaild code
    8f6fd4801 [jasmine-song] clear output don't reload
    
    (cherry picked from commit 37cf84a5fef65f40359704e5cb2238264e00a889)
    Signed-off-by: Philipp Dallig <philipp.dal...@gmail.com>
---
 zeppelin-web-angular/src/app/core/paragraph-base/paragraph-base.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/zeppelin-web-angular/src/app/core/paragraph-base/paragraph-base.ts 
b/zeppelin-web-angular/src/app/core/paragraph-base/paragraph-base.ts
index 26cffcc..48d4754 100644
--- a/zeppelin-web-angular/src/app/core/paragraph-base/paragraph-base.ts
+++ b/zeppelin-web-angular/src/app/core/paragraph-base/paragraph-base.ts
@@ -103,6 +103,9 @@ export abstract class ParagraphBase extends 
MessageListenersManager {
   paragraphData(data: MessageReceiveDataTypeMap[OP.PARAGRAPH]) {
     const oldPara = this.paragraph;
     const newPara = data.paragraph;
+    if (!newPara.results) {
+      newPara.results = {};
+    }
     if (this.isUpdateRequired(oldPara, newPara)) {
       this.updateParagraph(oldPara, newPara, () => {
         if (newPara.results && newPara.results.msg) {

Reply via email to