From 2ee080fcaae3d677334c1a329fa4d8109c7957e1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 27 Nov 2022 13:34:51 +0300 Subject: [PATCH] fixed a funny error that was preventing paths from being searched =) Signed-off-by: Alex A. Naanou --- pwiki/store/base.js | 4 +++- pwiki2.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pwiki/store/base.js b/pwiki/store/base.js index e19287b..af1fcbf 100755 --- a/pwiki/store/base.js +++ b/pwiki/store/base.js @@ -495,6 +495,7 @@ module.BaseStore = { //*/ var {text, tags} = update text = [ + '', path, (text && typeof(text) != 'function') ? @@ -504,7 +505,8 @@ module.BaseStore = { '#'+ tags.join(' #') : '', ].join('\n\n') - ;(await data).add(path, update.text) + ;(await data) + .add(path, text) // handle changes... //this.__search.options.__save_changes.call(this, name, 'update', path, update) return data }, diff --git a/pwiki2.js b/pwiki2.js index 748af91..9bd0879 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -37,6 +37,7 @@ * - * * +* XXX sort: aliases (a-la imagegrid???) * XXX sort: revise how we store order... * .metadata.order = [ .. ] * .metadata.order_ = [ .. ]