Skip to content

Commit

Permalink
Updated smart object filtering based on SC updates to smart objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Mossy426 committed Aug 27, 2024
1 parent 963f410 commit f0234c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,9 @@ class ScGraphItemView extends ItemView {
if (this.connectionType === 'both') {
return true; // return all connections
} else {
return connection.__proto__.constructor.name === (this.connectionType === 'block' ? 'SmartBlock' : 'SmartNote');
// If connectionType is block, return true if connection is a SmartBlock, otherwise return false
return (this.connectionType === 'block') === (connection instanceof this.env.item_types.SmartBlock);

}
}); // console.log('Filtered connections:', filteredConnections);
filteredConnections.forEach((connection: any, index: any) => {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "smart-connections-visualizer",
"name": "Smart Connections Visualizer",
"version": "1.0.15",
"version": "1.0.16",
"minAppVersion": "0.15.0",
"description": "View your Smart Connections in a visualized format.",
"author": "Evan Moscoso",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smart-connections-visualizer",
"version": "1.0.15",
"version": "1.0.16",
"description": "A plugin that allows you to view your Smart Connections in a visualized format.",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit f0234c5

Please sign in to comment.