Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

update (#126)

Caleb Taylore99b9345812c
diff --git a/js/app/packages/app/component/Soup.tsx b/js/app/packages/app/component/Soup.tsx
index a37688fbec..403429cd53 100644
--- a/js/app/packages/app/component/Soup.tsx
+++ b/js/app/packages/app/component/Soup.tsx
@@ -341,6 +341,7 @@ export function Soup() {
<Show when={!!selectedEntity()?.id && selectedEntity()}>
{(selectedEntity) => {
const entity = selectedEntity();
+ if (entity.type === 'project') return null;
const blockInstance = () =>
orchestrator.createBlockInstance(
entity.type === 'document'
diff --git a/js/app/packages/block-project/component/Block.tsx b/js/app/packages/block-project/component/Block.tsx
index ebe01399d7..8c177aab6a 100644
--- a/js/app/packages/block-project/component/Block.tsx
+++ b/js/app/packages/block-project/component/Block.tsx
@@ -293,10 +293,16 @@ const Block: Component = () => {
};
const splitContext = useSplitPanelOrThrow();
- const { selectedView, setSelectedView, setViewDataStore } =
+ const { selectedView, setSelectedView, setViewDataStore, viewsDataStore } =
splitContext.unifiedListContext;
+
+ const isPreview = viewsDataStore[selectedView()].display.preview
+
createRenderEffect(() => {
const previousView = untrack(selectedView);
+
+ if(isPreview) return
+
setSelectedView(projectId);
setViewDataStore(projectId, {