Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cypress-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ name: Cypress E2E Tests

on:
push:
branches: [ "master" ]
branches: [ "master", "2.x" ]
paths:
- 'storm-webapp/**'
pull_request:
branches: [ "master" ]
branches: [ "master", "2.x" ]
paths:
- 'storm-webapp/**'
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<jgrapht.version>1.5.3</jgrapht.version>
<guava.version>33.6.0-jre</guava.version>
<auto-service.version>1.1.1</auto-service.version>
<netty-tcnative.version>2.0.77.Final</netty-tcnative.version>
<netty-tcnative.version>2.0.80.Final</netty-tcnative.version>
<netty.version>4.2.15.Final</netty.version>
<sysout-over-slf4j.version>1.0.2</sysout-over-slf4j.version>
<log4j.version>2.26.0</log4j.version>
Expand Down
10 changes: 5 additions & 5 deletions storm-webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion storm-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"jquery": "4.0.0",
"jquery-blockui": "2.7.0",
"js-cookie": "3.0.8",
"js-yaml": "4.2.0",
"js-yaml": "5.2.0",
"moment": "2.30.1",
"mustache": "4.2.0",
"typeahead.js": "0.11.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@

function parseAndRender() {
var input = document.getElementById('taInput').value;
var doc = jsyaml.load(input);
var doc;
try {
doc = jsyaml.load(input);
} catch (e) {
// js-yaml >=5 throws on empty/comment-only input instead of
// returning undefined (see migrate_v4_to_v5); treat as no document.
return;
}
if(doc==null){
return;
}
Expand Down
Loading