Coder Social home page Coder Social logo

Comments (3)

AlexJerabek avatar AlexJerabek commented on September 14, 2024

Thanks for reporting this @Rickyp. I'll work up a fix soon and share the results on this thread.

from office-js-snippets.

AlexJerabek avatar AlexJerabek commented on September 14, 2024

Hi @Rickyp,
A couple things. One, I couldn't get this to repo on "Create a named item", but I did see this behavior on the other Named Item snippets.
Second, I'm wondering if this is desirable behavior and would appreciate your input. The role of snippets is to show how the code acts. Is it valuable to know referencing a non-existent NamedItem throws an error? Or is it better to show how to check if NamedItems exist (and avoiding the error)?

from office-js-snippets.

AlexJerabek avatar AlexJerabek commented on September 14, 2024

Hi @Rickyp

The snippet has been updated to warn of this behavior, while preserving the simplicity of the code sample. The sample about updating named items shows how to check if the named item already exists.

I'm going to close the issue. Please reopen it if you notice any other problems. Thanks!

from office-js-snippets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.