1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-09 09:35:02 +09:00

revert files in graph

This commit is contained in:
Andrew Simachev 2024-05-06 11:04:07 +02:00
parent d498414e6a
commit afdfb68d06
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
3 changed files with 2 additions and 9 deletions

View file

@ -192,12 +192,6 @@ updateForces = () => {
updateOrphans();
// Filter files
if (!settings.files) {
const layouts = [ Layout.File, Layout.Image, Layout.Audio, Layout.Video, Layout.Pdf ];
nodes = nodes.filter(d => !layouts.includes(d.layout) || d.forceShow);
};
// Filter links
if (!settings.link) {
edges = edges.filter(d => d.type != EdgeType.Link);
@ -262,7 +256,7 @@ updateForces = () => {
};
updateSettings = (param) => {
const updateKeys = [ 'link', 'relation', 'orphan', 'local', 'files' ];
const updateKeys = [ 'link', 'relation', 'orphan', 'local' ];
let needUpdate = false;
let needFocus = false;