Ignore empty path parts in info.get()

This commit is contained in:
D. Berge
2021-05-20 18:10:51 +02:00
parent 86d3323869
commit ac51f72180

View File

@@ -2,7 +2,7 @@ const { setSurvey } = require('../connection');
async function get (projectId, path, opts = {}) {
const client = await setSurvey(projectId);
const [key, ...subkey] = path.split("/");
const [key, ...subkey] = path.split("/").filter(i => i.trim().length);
const text = `
SELECT value