kgabryje commented on code in PR #37649:
URL: https://github.com/apache/superset/pull/37649#discussion_r2762486294
##########
superset-frontend/src/explore/actions/saveModalActions.ts:
##########
@@ -144,12 +144,14 @@ export const getSlicePayload = async (
...adhocFilters,
dashboards,
};
- let datasourceId = 0;
+ let datasourceId: number | string = 0;
let datasourceType: DatasourceType = DatasourceType.Table;
if (formData.datasource) {
const [id, typeString] = formData.datasource.split('__');
- datasourceId = parseInt(id, 10);
+ // Try to parse as integer, fall back to string (UUID) if NaN
+ const parsedId = parseInt(id, 10);
Review Comment:
Same as above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]