1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Fix double palette entries

Fixes #6700

Thanks to Eric Shulman
This commit is contained in:
jeremy@jermolene.com 2022-05-20 17:13:12 +01:00
parent 7cbe1e1d83
commit 6eb4fbeead

View File

@ -65,14 +65,10 @@ title: $:/PaletteManager
\whitespace trim
<table>
<tbody>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]indexes[]]" variable="colourName">
<$list
filter="[<currentTiddler>indexes[]removeprefix<colourName>suffix[]]"
variable="ignore"
emptyMessage="<$list filter='[{$:/state/palettemanager/showexternal}removeprefix[yes]suffix[]]' variable='ignore'><<palette-manager-colour-row>></$list>">
<<palette-manager-colour-row>>
</$list>
</$list>
<$set name="colorList" filter="[{$:/state/palettemanager/showexternal}match[yes]]"
value="[all[shadows+tiddlers]tag[$:/tags/Palette]indexes[]]" emptyValue="[<currentTiddler>indexes[]]">
<$list filter=<<colorList>> variable="colourName"> <<palette-manager-colour-row>> </$list>
</$set>
</tbody>
</table>
\end