Skip to content

Commit

Permalink
fix: check if record is empty (#1819)
Browse files Browse the repository at this point in the history
## Description:
There's an issue with processing empty RPC URL structure:

![image](https://github.com/kurtosis-tech/kurtosis/assets/11248996/4a6b2344-3b3d-4f84-8e0c-5fde75b215cb)


## Is this change user facing?
YES

## References (if applicable):
<!-- Add relevant Github Issues, Discord threads, or other helpful
information. -->
  • Loading branch information
adschwartz authored Nov 17, 2023
1 parent 70f492c commit 392d47b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export const EnclaveConfigurationForm = forwardRef<

switch (valueType) {
case ArgumentValueType.DICT:
return transformRecordsToObject(value, innerValuetype);
if (!isDefined(value)) return {};
else return transformRecordsToObject(value, innerValuetype);
case ArgumentValueType.LIST:
return value.map((v: any) => transformValue(innerValuetype, v));
case ArgumentValueType.BOOL:
Expand Down
6 changes: 3 additions & 3 deletions engine/server/webapp/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"files": {
"main.js": "./static/js/main.d7ed9dbe.js",
"main.js": "./static/js/main.762981d8.js",
"index.html": "./index.html",
"main.d7ed9dbe.js.map": "./static/js/main.d7ed9dbe.js.map"
"main.762981d8.js.map": "./static/js/main.762981d8.js.map"
},
"entrypoints": [
"static/js/main.d7ed9dbe.js"
"static/js/main.762981d8.js"
]
}
2 changes: 1 addition & 1 deletion engine/server/webapp/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Kurtosis Enclave Manager"/><title>Kurtosis Enclave Manager</title><script defer="defer" src="./static/js/main.d7ed9dbe.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Kurtosis Enclave Manager"/><title>Kurtosis Enclave Manager</title><script defer="defer" src="./static/js/main.762981d8.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 392d47b

Please sign in to comment.