This is an automated email from the ASF dual-hosted git repository.
pdallig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/master by this push:
new 37cf84a [ZEPPELIN-5601]Make the page update after excuse the clear
output paragraph action
37cf84a is described below
commit 37cf84a5fef65f40359704e5cb2238264e00a889
Author: jasmine-song <[email protected]>
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)

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No
Author: jasmine-song <[email protected]>
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
---
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) {