working folder docs

This commit is contained in:
Filip Gala 2024-09-26 19:04:22 +02:00
parent dcba96b23f
commit e4c28c84ac
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ const Documentation = ({ collection, folder }) => {
const dispatch = useDispatch();
const { displayedTheme } = useTheme();
const [isEditing, setIsEditing] = useState(false);
const docs = get(folder, 'root.request.docs', '');
const docs = get(folder, 'root.docs', '');
const preferences = useSelector((state) => state.app.preferences);
const toggleViewMode = () => {

View File

@ -1738,7 +1738,7 @@ export const collectionsSlice = createSlice({
const folder = collection ? findItemInCollection(collection, action.payload.folderUid) : null;
if (folder) {
if (isItemAFolder(folder)) {
set(folder, 'root.request.docs', action.payload.docs);
set(folder, 'root.docs', action.payload.docs);
}
}
}