We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eddc7b commit eff1d43Copy full SHA for eff1d43
console/atest-ui/src/views/store.ts
@@ -63,7 +63,13 @@ const Cassandra = "cassandra";
63
export const GetDriverName = (store: Store): string => {
64
switch (store.kind.name) {
65
case 'atest-store-orm':
66
- return store.properties.find((p: Pair) => p.key === 'driver')?.value || MySQL;
+ const properties = store.properties as Pair[];
67
+ for (let i = 0; i < properties.length; i++) {
68
+ if (properties[i].key === 'driver') {
69
+ return properties[i].value || MySQL;
70
+ }
71
72
+ return MySQL;
73
case 'atest-store-cassandra':
74
return Cassandra;
75
}
0 commit comments