Skip to content

Commit

Permalink
Fix typeicon for sql native (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
whscullin authored Nov 5, 2024
1 parent eed37ff commit 390aefb
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 36 deletions.
54 changes: 27 additions & 27 deletions package-lock.json

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

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
"malloy-packages": "./scripts/malloy-packages.ts"
},
"dependencies": {
"@malloydata/db-bigquery": "0.0.207",
"@malloydata/db-duckdb": "0.0.207",
"@malloydata/db-postgres": "0.0.207",
"@malloydata/malloy": "0.0.207",
"@malloydata/db-bigquery": "0.0.209",
"@malloydata/db-duckdb": "0.0.209",
"@malloydata/db-postgres": "0.0.209",
"@malloydata/malloy": "0.0.209",
"@malloydata/query-composer": "*",
"@malloydata/render": "0.0.207",
"@malloydata/render": "0.0.209",
"@popperjs/core": "^2.11.4",
"cors": "^2.8.5",
"duckdb": "^0.9.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/query-composer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@malloydata/query-composer",
"version": "0.0.207",
"version": "0.0.209",
"description": "A query composer component for Malloy",
"main": "dist/cjs/index.cjs",
"type": "module",
Expand Down Expand Up @@ -47,8 +47,8 @@
"vite-plugin-svgr": "^4.2.0"
},
"peerDependencies": {
"@malloydata/malloy": ">=0.0.207",
"@malloydata/render": ">=0.0.207",
"@malloydata/malloy": ">=0.0.209",
"@malloydata/render": ">=0.0.209",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"styled-components": "^5.3.3"
Expand Down
3 changes: 2 additions & 1 deletion packages/query-composer/src/components/TypeIcon/TypeIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ export const TypeIcon: React.FC<TypeIconProps> = ({type, kind}) => {
} else if (type === 'source') {
return <TypeIconSource {...sizeProps} />;
}
throw new Error('Invalid icon type');
console.warn(`invalid type icon ${type} ${kind}`);
return <TypeIconNumber {...sizeProps} />;
};

0 comments on commit 390aefb

Please sign in to comment.