Using grayscale colormap in Cornerstone3D

Hello everyone, I am loading a Base64 image into Cornerstone, this is working fine but when i try to change the colormap of the viewport to grayscale it doesn´t do any changes to the image, it keeps its original colors, other colormaps from vtk.js make changes to the image.

I’m getting my colormaps from:

import vtkColormaps from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps';

And i´m changing the colormap here:

const updateColormap = (colormapName) => {
        setCurrentColormap(colormapName);
        if (elementRef.current) {
            const renderingEngine = getRenderingEngine("myRenderingEngine");

            if (renderingEngine) {
                const viewport = renderingEngine.getViewport("CT");
                if (viewport) {
                    viewport.setProperties({colormap: {name: colormapName}});
                    viewport.render();
                }
            } else {
                console.error("No Rendering Engine.");
            }
        }
    };