diff --git a/web-app/src/components/sections/IndexConversation/TabContainer/CreatorsTab.tsx b/web-app/src/components/sections/IndexConversation/TabContainer/CreatorsTab.tsx index e6564c66..85ae08dc 100644 --- a/web-app/src/components/sections/IndexConversation/TabContainer/CreatorsTab.tsx +++ b/web-app/src/components/sections/IndexConversation/TabContainer/CreatorsTab.tsx @@ -39,7 +39,8 @@ export default function CreatorsTabSection() { [2], [previousCollabAction] ); - + //There's a risk here. + //If the user refreshes the page before the transaction is mined, the UI will show the old value. const updatedIndex = await api!.updateIndex(viewedIndex?.id, { signerFunction: cid, }); diff --git a/web-app/src/components/site/index-details/CreatorSettings/index.tsx b/web-app/src/components/site/index-details/CreatorSettings/index.tsx index f2c439c2..9c542762 100644 --- a/web-app/src/components/site/index-details/CreatorSettings/index.tsx +++ b/web-app/src/components/site/index-details/CreatorSettings/index.tsx @@ -30,6 +30,7 @@ const CreatorSettings: FC = ({ const [conditions, setConditions] = useState([]); const addOrStatements = (c: AccessControlCondition[]) => c.flatMap((el, i) => (i === c.length - 1 ? el : [el, { operator: "or" }])).map(a => { + // @ts-ignore delete a.metadata return a });