Import-and-overwrite button broken in Ruffled Wren 1.6.1 #107
Describe the problem
Trying to import another Feather Wiki file with the big red button in Settings has no effect, and shows an error in the browser console.
- Go to 'Wiki Settings'
- Click on 'Import & Overwrite With Other Feather Wiki File'
- Pick a file to open
- The page title changes, but nothing else
Import should complete normally.
Details (please complete the following information)
- I am using this build: Ruffled Wren
- I am using this version: 1.6.1
- I am using this browser: Opera 78 and Firefox 102
Copy-pasted from Opera's browser console:
FeatherWiki_ruffled-Wren.html:11 Uncaught (in promise) TypeError: a.indexOf is not a function at VM6 FeatherWiki_ruffled-Wren.html:11 at Array.filter (<anonymous>) at P._t [as tidy] (VM6 FeatherWiki_ruffled-Wren.html:11) at Function.<anonymous> (VM6 FeatherWiki_ruffled-Wren.html:11) at R._emit (VM6 FeatherWiki_ruffled-Wren.html:1) at R.emit (VM6 FeatherWiki_ruffled-Wren.html:1) at l (VM6 FeatherWiki_ruffled-Wren.html:11) at Function.<anonymous> (VM6 FeatherWiki_ruffled-Wren.html:11) at R._emit (VM6 FeatherWiki_ruffled-Wren.html:1) at R.emit (VM6 FeatherWiki_ruffled-Wren.html:1)
(Firefox yields a similar error message, but with less useful context.)
Hi @nosycat, would you be able to share the wiki you are trying to import? I've been able to use the Import and Overwrite button without an issue, i.e. to upgrade the main website.
// For arrays of strings (like tags) only FW.tidy = ar => ar.map(v => v.trim()).filter((v, i) => v.length && a.indexOf(v) === i).sort();
'a' is not defined here
Oops, forgot to mention, it's the Tales of Space and Magic wiki. Same as always. Actually, let me attach a copy.
@strunevsky Oh, good catch, and right you are!! I had moved that from a different file and it looks like I totally missed that.
And thanks @nosycat! I'll definitely be getting a fix out for this ASAP.
Version 1.6.2 seems to work fine. Thank you very much!
So, I this problem too and it occurred after I used the update extension to update my wiki on my tiddlyhost account. I didn't create a backup beforehand, I know, rookie mistake. Is there a way to get my info back?
@Bearking If you tell me which site it is I might be able to help with the recovery.
@Bearking I took a guess which site you're talking about and recovered the previously saved version of it. Take a look at https://tiddlyhost.com/sites and you should see the restored version. The restored version is still FeatherWiki 1.6.0, but I think if you upgrade now using "Import and overwrite" with FeatherWiki 1.6.2 it should work correctly.
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?