fix: remove btn in tab menu fixed

This commit is contained in:
alihamuh
2020-03-18 10:45:46 +05:00
parent 8ec4f3433b
commit a7a195bc83
2 changed files with 2 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ const menuItems = (note, index, context) => [
}
},
{
invisible: !context,
invisible: context ? (context.type === "topic" ? false : true) : true,
title: "Remove",
onClick: async () => {
confirm(

View File

@@ -11,6 +11,7 @@ const SESSION_STATES = {
};
const DEFAULT_SESSION = {
notebook: undefined,
state: "",
isSaving: false,
title: "",