SET_ENTITY()

in src/lib/store/modules/entity.store.js [74:94]


    SET_ENTITY(state, {clientId, entityId, type, name, description, parentId, ownerId, createdAt, updatedAt, sharedCount, fullText, binaryData, metadata = {}, ext = {}}) {
        state.entityMap = {
            ...state.entityMap,
            [entityId]: {
                clientId,
                entityId,
                type,
                name,
                description,
                parentId,
                ownerId,
                createdAt,
                updatedAt,
                sharedCount,
                fullText,
                binaryData,
                metadata,
                ext
            }
        };
    },