fix question query load
This commit is contained in:
@@ -5,9 +5,7 @@ const SEPARATOR_TOKEN = "-";
|
||||
type Decoded = { typeName: string; id: string };
|
||||
|
||||
const decode = (id: Node["id"]): Decoded => {
|
||||
const raw = Buffer.from(id, "base64").toString("ascii");
|
||||
|
||||
const [nodeTypeName, nodeId] = raw.split(SEPARATOR_TOKEN);
|
||||
const [nodeTypeName, nodeId] = atob(id).split(SEPARATOR_TOKEN);
|
||||
|
||||
return {
|
||||
id: nodeId,
|
||||
|
||||
Reference in New Issue
Block a user