Skip to content

Commit

Permalink
Merge pull request #57 from lukashornych/dev
Browse files Browse the repository at this point in the history
Revert "fix: cannot parse preconfigured connections, evitaDB doesn't …
  • Loading branch information
lukashornych authored Oct 20, 2023
2 parents 9ab06fa + 1fa37d0 commit 3c44e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/lab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const state = (): LabState => {
const preconfiguredConnectionsCookie: string | undefined = Cookies.get(preconfiguredConnectionsCookieName)
if (preconfiguredConnectionsCookie != undefined) {
try {
preconfiguredConnections = (JSON.parse(preconfiguredConnectionsCookie) as Array<any>)
preconfiguredConnections = (JSON.parse(atob(preconfiguredConnectionsCookie)) as Array<any>)
.map(connection => EvitaDBConnection.fromJson(connection, true))
} catch (e) {
console.error('Failed to load preconfigured connections cookie', e)
Expand Down

0 comments on commit 3c44e38

Please sign in to comment.