Skip to content

Commit 00bea16

Browse files
committed
Fix: Send moduleId in tag operations
1 parent cb13fe1 commit 00bea16

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/App.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ body {
221221
.button,
222222
.select-text,
223223
.dropdown > .dropdown-item,
224-
.title {
224+
.title,
225+
input {
225226
font-size: 1rem !important;
226227
}
227228
}

src/components/Settings.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const Settings = ({
2626
const [collectionList, setCollectionList] = useState([]);
2727
const [loading, setLoading] = useState(false);
2828
const [activeId, setActiveId] = useState();
29-
const [showJSON, setShowJSON] = useState(true);
29+
const [showJSON, setShowJSON] = useState(false);
3030

3131
useEffect(() => {
3232
if (activeCollectionId) setActiveId(activeCollectionId);
@@ -80,6 +80,7 @@ const Settings = ({
8080
saveCollectionSettings={saveCollectionSettings}
8181
loading={loading}
8282
fetchSession={fetchSession}
83+
activeId={activeId}
8384
/>
8485
)}
8586
</Drawer>
@@ -121,6 +122,7 @@ const CollectionSetting = ({
121122
saveCollectionSettings,
122123
loading,
123124
fetchSession,
125+
activeId,
124126
}) => {
125127
const [localData, setLocalData] = useState({});
126128

@@ -135,7 +137,7 @@ const CollectionSetting = ({
135137
const updateTagSettings = async (data, { action }) => {
136138
await axios.post(
137139
`/tags/operations`,
138-
{ ...data, moduleName: "COLLECTION" },
140+
{ ...data, moduleName: "COLLECTION", moduleId: activeId },
139141
{
140142
params: { action },
141143
}

0 commit comments

Comments
 (0)