Skip to content

Commit

Permalink
Revert "fix: cannot parse preconfigured connections, evitaDB doesn't …
Browse files Browse the repository at this point in the history
…use base64 format anymore"

This reverts commit 0ce9d5a.
  • Loading branch information
lukashornych committed Oct 20, 2023
1 parent 8de2194 commit 1fa37d0
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 1fa37d0

Please sign in to comment.