Skip to content
Snippets Groups Projects
Commit 577d24e9 authored by Sebastian Mohr's avatar Sebastian Mohr
Browse files

Hotfix: Fixed a small visual glitch with newly inserted snippets.

parent a0a2ce34
No related branches found
No related tags found
No related merge requests found
Pipeline #594871 passed
......@@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## 1.12.2
- Hotfix: Fixed a small bug with newly inserted snippets being instantly rendered on a page
even tho they are not placed yet
## 1.12.1
### Fixed
......
......@@ -178,7 +178,10 @@ export class Page extends LocalPage {
// check if a snip is relevant for this page
return (
this.data.id === snip.page_id ||
this.data.referenced_page_id === snip.page_id
(
this.data.referenced_page_id !== null &&
this.data.referenced_page_id === snip.page_id
)
);
}
}
{
"name": "snip",
"version": "1.12.1",
"version": "1.12.2",
"description": "our digital lab book",
"author": "Sebastian B. Mohr, Markus Osterhoff",
"repository": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment