MCPcopy Create free account
hub / github.com/microsoft/SandDance / dataSourceError

Method dataSourceError

docs/app/js/sanddance-app.js:51449–51457  ·  view source on GitHub ↗
(dataSource)

Source from the content-addressed store, hash-verified

51447 }, this.props.initialOptions && (0, _sanddanceExplorer.SandDance).VegaDeckGl.util.deepMerge({}, this.props.initialOptions["*"], this.props.initialOptions[dataSource.id]));
51448 }
51449 dataSourceError(dataSource) {
51450 switch(dataSource.dataSourceType){
51451 case "local":
51452 return (0, _language.strings).errorDataSourceFromLocal(dataSource);
51453 case "sample":
51454 case "url":
51455 return (0, _language.strings).errorDataSourceFromUrl(dataSource);
51456 }
51457 }
51458 loadError(dataSource) {
51459 let error = this.dataSourceError(dataSource);
51460 this.explorer.setState({

Callers 1

loadErrorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected