Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate 'systemConfig' added in TiddlerInFilePlugin #1

Open
PengjuYan opened this issue Feb 1, 2024 · 0 comments
Open

duplicate 'systemConfig' added in TiddlerInFilePlugin #1

PengjuYan opened this issue Feb 1, 2024 · 0 comments

Comments

@PengjuYan
Copy link

I'm using the amazing TiddlerInFilePlugin as a helper to facilitate my plugin development.

There's a suspicious minor defect in it. When an external file is taken as a plugin, then the tag systemConfig will be appended no matter if one is already there. In some cases my tiddler will end up with duplicated systemConfig tags. I made the following modification in my repo, but did not thoroughly test it.

if (!tiddler.tags.includes('systemConfig')) {
    tiddler.tags.push('systemConfig');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant