MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / addTag

Function addTag

frontend/src/hooks/useInstanceTag.ts:33–39  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

31 };
32
33 const addTag = (tag: string) => {
34 tag = tag.trim();
35 if (!_.includes(instanceTags.value, tag)) {
36 instanceTags.value.push(tag);
37 }
38 instanceTags.value = instanceTags.value.sort((a, b) => (a > b ? 1 : -1));
39 };
40
41 const saveTags = async () => {
42 return await execute({

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected