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:
parent
d498414e6a
commit
afdfb68d06
3 changed files with 2 additions and 9 deletions
8
dist/workers/graph.js
vendored
8
dist/workers/graph.js
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue