improved sharing not finished
This commit is contained in:
@@ -56,7 +56,13 @@ export const TagPicker: Component<TagPickerProps> = (props) => {
|
||||
if (!name) return;
|
||||
|
||||
if (name.startsWith("@")) {
|
||||
const exists = store.contexts.some(context => context.key === normalizeContextKey(name));
|
||||
const normalized = normalizeContextKey(name);
|
||||
const exists = store.contexts.some(context =>
|
||||
!context.deletedAt && (
|
||||
context.key === normalized ||
|
||||
normalizeContextKey(context.displayName) === normalized
|
||||
)
|
||||
);
|
||||
if (!exists) {
|
||||
toast.error("Create the shared context first before tagging tasks with it.");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user